diff options
Diffstat (limited to 'lib/chef/resource/erl_call.rb')
-rw-r--r-- | lib/chef/resource/erl_call.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/chef/resource/erl_call.rb b/lib/chef/resource/erl_call.rb index 607bcc0fae..830e02b71b 100644 --- a/lib/chef/resource/erl_call.rb +++ b/lib/chef/resource/erl_call.rb @@ -23,14 +23,13 @@ require "chef/provider/erl_call" class Chef class Resource class ErlCall < Chef::Resource - # erl_call : http://erlang.org/doc/man/erl_call.html identity_attr :code default_action :run - def initialize(name, run_context=nil) + def initialize(name, run_context = nil) super @code = "q()." # your erlang code goes here @@ -40,7 +39,7 @@ class Chef @node_name = "chef@localhost" # the erlang node hostname end - def code(arg=nil) + def code(arg = nil) set_or_return( :code, arg, @@ -48,7 +47,7 @@ class Chef ) end - def cookie(arg=nil) + def cookie(arg = nil) set_or_return( :cookie, arg, @@ -56,7 +55,7 @@ class Chef ) end - def distributed(arg=nil) + def distributed(arg = nil) set_or_return( :distributed, arg, @@ -64,7 +63,7 @@ class Chef ) end - def name_type(arg=nil) + def name_type(arg = nil) set_or_return( :name_type, arg, @@ -72,14 +71,13 @@ class Chef ) end - def node_name(arg=nil) + def node_name(arg = nil) set_or_return( :node_name, arg, :kind_of => [ String ], ) end - end end end |