Skip to content

Commit

Permalink
Merge pull request #19 from chef-cookbooks/sersut/warning-fix
Browse files Browse the repository at this point in the history
Use recipe DSL to set the resource name.
  • Loading branch information
Serdar Sutay committed Jul 2, 2015
2 parents 977e845 + 47adb59 commit 13b67a5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit 13b67a5

Please sign in to comment.