Method: Chef::Resource::ErlCall#initialize

Defined in:
lib/chef/resource/erl_call.rb

#initialize(name, run_context = nil) ⇒ ErlCall

Returns a new instance of ErlCall.



30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/chef/resource/erl_call.rb', line 30

def initialize(name, run_context=nil)
  super
  @resource_name = :erl_call

  @code = "q()." # your erlang code goes here
  @cookie = nil # cookie of the erlang node
  @distributed = false # if you want to have a distributed erlang node
  @name_type = "sname" # type of erlang hostname name or sname
  @node_name = "chef@localhost" # the erlang node hostname

  @action = "run"
  @allowed_actions.push(:run)
end