Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use recipe DSL to set the resource name. #19

Merged
merged 1 commit into from Jul 2, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/chef_ingredient_resource.rb
Expand Up @@ -17,7 +17,7 @@
class Chef
class Resource
class ChefIngredient < Chef::Resource::LWRPBase
self.resource_name = 'chef_ingredient'
resource_name :chef_ingredient

actions :install, :uninstall, :remove, :reconfigure, :upgrade
default_action :install
Expand Down
2 changes: 1 addition & 1 deletion libraries/chef_server_ingredient_shim.rb
Expand Up @@ -28,7 +28,7 @@ class ChefServerIngredient < Chef::Provider::ChefIngredient
class Chef
class Resource
class ChefServerIngredient < Chef::Resource::ChefIngredient
self.resource_name = 'chef_server_ingredient'
resource_name :chef_server_ingredient
end
end
end
2 changes: 1 addition & 1 deletion libraries/ingredient_config_resource.rb
Expand Up @@ -16,7 +16,7 @@
class Chef
class Resource
class IngredientConfig < Chef::Resource::LWRPBase
self.resource_name = 'ingredient_config'
resource_name :ingredient_config

actions :render
default_action :render
Expand Down
2 changes: 1 addition & 1 deletion libraries/omnibus_service_resource.rb
Expand Up @@ -17,7 +17,7 @@
class Chef
class Resource
class OmnibusService < Chef::Resource::LWRPBase
self.resource_name = 'omnibus_service'
resource_name :omnibus_service

actions %i(start stop restart hup int kill graceful_kill once)
default_action :nothing
Expand Down