summaryrefslogtreecommitdiff
path: root/lib/chef/resource/cookbook_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/cookbook_file.rb')
-rw-r--r--lib/chef/resource/cookbook_file.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/chef/resource/cookbook_file.rb b/lib/chef/resource/cookbook_file.rb
index 6f1da0aa01..557ca0e750 100644
--- a/lib/chef/resource/cookbook_file.rb
+++ b/lib/chef/resource/cookbook_file.rb
@@ -29,21 +29,20 @@ class Chef
default_action :create
- def initialize(name, run_context=nil)
+ def initialize(name, run_context = nil)
super
@provider = Chef::Provider::CookbookFile
@source = ::File.basename(name)
@cookbook = nil
end
- def source(source_filename=nil)
+ def source(source_filename = nil)
set_or_return(:source, source_filename, :kind_of => [ String, Array ])
end
- def cookbook(cookbook_name=nil)
+ def cookbook(cookbook_name = nil)
set_or_return(:cookbook, cookbook_name, :kind_of => String)
end
-
end
end
end