Skip to content

Commit

Permalink
Merge pull request #76 from sorah/rjust-file-mode
Browse files Browse the repository at this point in the history
file: rjust modes (e.g. 644 -> 0644)
  • Loading branch information
ryotarai committed Feb 12, 2015
2 parents 6c61771 + 1aa5b94 commit 2181496
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/itamae/resource/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def set_current_attributes
end

def show_differences
current.mode = attributes.mode.rjust(4, '0') if current.mode
attributes.mode = attributes.mode.rjust(4, '0') if attributes.mode

super

if current.exist
Expand Down

0 comments on commit 2181496

Please sign in to comment.