diff options
author | Andrew Brown <andrew.brown@shopify.com> | 2016-05-30 12:18:56 -0400 |
---|---|---|
committer | Andrew Brown <andrew.brown@shopify.com> | 2016-05-30 12:22:35 -0400 |
commit | 75ace978d070f2f8923f40c328ea594cd505cafb (patch) | |
tree | 31129c597e82391caedaa71e573be89d397c7ff4 /lib/chef/resource/file.rb | |
parent | d8014435565ce81b961dde09b5b801e24d5c2d42 (diff) | |
download | chef-75ace978d070f2f8923f40c328ea594cd505cafb.tar.gz |
Style fixes
Fixing rubocop errors found during CI
Diffstat (limited to 'lib/chef/resource/file.rb')
-rw-r--r-- | lib/chef/resource/file.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/resource/file.rb b/lib/chef/resource/file.rb index 27a867d869..b8c7bb73e9 100644 --- a/lib/chef/resource/file.rb +++ b/lib/chef/resource/file.rb @@ -50,8 +50,7 @@ class Chef allowed_actions :create, :delete, :touch, :create_if_missing property :path, String, name_property: true, identity: true - property :atomic_update, [ true, false ], desired_state: false, - default: lazy { |r| r.docker?(r.node) && r.special_docker_files?(r.path) ? false : Chef::Config[:file_atomic_update] } + property :atomic_update, [ true, false ], desired_state: false, default: lazy { |r| r.docker?(r.node) && r.special_docker_files?(r.path) ? false : Chef::Config[:file_atomic_update] } property :backup, [ Integer, false ], desired_state: false, default: 5 property :checksum, [ /^[a-zA-Z0-9]{64}$/, nil ] property :content, [ String, nil ], desired_state: false @@ -82,7 +81,7 @@ class Chef end def special_docker_files?(file) - %w(/etc/hostname /etc/resolv.conf).include?(Pathname(file).cleanpath.to_path) + %w{/etc/hostname /etc/resolv.conf}.include?(Pathname(file).cleanpath.to_path) end end end |