lib/chef-dk/skeletons/code_generator/recipes/lwrp.rb in chef-dk-0.11.2 vs lib/chef-dk/skeletons/code_generator/recipes/lwrp.rb in chef-dk-0.12.0
- old
+ new
@@ -1,23 +1,23 @@
-
-context = ChefDK::Generator.context
-cookbook_dir = File.join(context.cookbook_root, context.cookbook_name)
-
-resource_dir = File.join(cookbook_dir, "resources")
-resource_path = File.join(resource_dir, "#{context.new_file_basename}.rb")
-
-provider_dir = File.join(cookbook_dir, "providers")
-provider_path = File.join(provider_dir, "#{context.new_file_basename}.rb")
-
-directory resource_dir
-
-template resource_path do
- source "resource.rb.erb"
- helpers(ChefDK::Generator::TemplateHelper)
-end
-
-directory provider_dir
-
-template provider_path do
- source "provider.rb.erb"
- helpers(ChefDK::Generator::TemplateHelper)
-end
+
+context = ChefDK::Generator.context
+cookbook_dir = File.join(context.cookbook_root, context.cookbook_name)
+
+resource_dir = File.join(cookbook_dir, "resources")
+resource_path = File.join(resource_dir, "#{context.new_file_basename}.rb")
+
+provider_dir = File.join(cookbook_dir, "providers")
+provider_path = File.join(provider_dir, "#{context.new_file_basename}.rb")
+
+directory resource_dir
+
+template resource_path do
+ source "resource.rb.erb"
+ helpers(ChefDK::Generator::TemplateHelper)
+end
+
+directory provider_dir
+
+template provider_path do
+ source "provider.rb.erb"
+ helpers(ChefDK::Generator::TemplateHelper)
+end