Skip to content

Commit ce2fdd1

Browse files
committed
added comments to resource
1 parent fa817e8 commit ce2fdd1

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

chef/lib/chef/resource/erl_call.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ class Chef
2222
class Resource
2323
class ErlCall < Chef::Resource
2424

25+
# erl_call : http://erlang.org/doc/man/erl_call.html
26+
2527
def initialize(name, collection=nil, node=nil)
2628
super(name, collection, node)
2729
@resource_name = :erl_call
2830

29-
@code = "q()."
30-
@cookie = nil
31-
@distributed = false
32-
@name_type = "sname"
33-
@node_name = "chef@localhost"
31+
@code = "q()." # your erlang code goes here
32+
@cookie = nil # cookie of the erlang node
33+
@distributed = false # if you want to have a distributed erlang node
34+
@name_type = "sname" # type of erlang hostname name or sname
35+
@node_name = "chef@localhost" # the erlang node hostname
3436
end
3537

3638
def code(arg=nil)

0 commit comments

Comments
 (0)