Skip to content

Commit

Permalink
Merge pull request #194 from KitaitiMakoto/identical-file
Browse files Browse the repository at this point in the history
Don't replace files when they will not be updated
  • Loading branch information
ryotarai committed Jan 24, 2016
2 parents c4ec051 + 03b557d commit 56fd435
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/itamae/resource/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def action_create(options)
updated!
end

run_specinfra(:move_file, @temppath, attributes.path)
if updated?
run_specinfra(:move_file, @temppath, attributes.path)
end
end
end

Expand Down

0 comments on commit 56fd435

Please sign in to comment.