diff options
author | John Keiser <john@johnkeiser.com> | 2015-06-01 13:21:50 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-06-01 13:21:50 -0700 |
commit | 22da6b42a02fcfd7e9d03f5f09828b7ddc569bb9 (patch) | |
tree | 486e4d616f2f4b2d1d605ffeb96e0eec6c97f7b5 /lib/chef/resource/file.rb | |
parent | 02e8874637dd661b5aaf656a5c2d6fbbb5795619 (diff) | |
parent | 33df30d0f8c75b1e600da2f169fee0f8e58f694a (diff) | |
download | chef-22da6b42a02fcfd7e9d03f5f09828b7ddc569bb9.tar.gz |
Merge branch 'jk/resource_action_attributes'
Diffstat (limited to 'lib/chef/resource/file.rb')
-rw-r--r-- | lib/chef/resource/file.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/file.rb b/lib/chef/resource/file.rb index 32fd984f8c..51969f65a0 100644 --- a/lib/chef/resource/file.rb +++ b/lib/chef/resource/file.rb @@ -48,13 +48,13 @@ class Chef attr_accessor :final_checksum use_automatic_resource_name + default_action :create + allowed_actions :create, :delete, :touch, :create_if_missing def initialize(name, run_context=nil) super @path = name @backup = 5 - @action = "create" - @allowed_actions.push(:create, :delete, :touch, :create_if_missing) @atomic_update = Chef::Config[:file_atomic_update] @force_unlink = false @manage_symlink_source = nil |