Class: Chef::Resource::RightLinkTag
- Inherits:
-
Chef::Resource
- Object
- Chef::Resource
- Chef::Resource::RightLinkTag
- Defined in:
- lib/chef/providers/right_link_tag_resource.rb
Overview
Tag exposed by RightLink agent
Instance Method Summary collapse
-
#initialize(name, run_context = nil) ⇒ RightLinkTag
constructor
Initialize tag resource.
-
#timeout(arg = nil) ⇒ Object
(Fixnum) Common timeout parameter for command line tools.
Constructor Details
#initialize(name, run_context = nil) ⇒ RightLinkTag
Initialize tag resource
Parameters
- name(String)
-
Tag name
- collection(Array)
-
Collection of included recipes
- node(Chef::Node)
-
Node where resource will be used
36 37 38 39 40 41 42 |
# File 'lib/chef/providers/right_link_tag_resource.rb', line 36 def initialize(name, run_context=nil) super(name, run_context) @resource_name = :right_link_tag @action = :publish @timeout = 120 @allowed_actions.push(:publish, :remove, :load) end |
Instance Method Details
#timeout(arg = nil) ⇒ Object
(Fixnum) Common timeout parameter for command line tools
45 46 47 48 49 50 51 |
# File 'lib/chef/providers/right_link_tag_resource.rb', line 45 def timeout(arg=nil) set_or_return( :timeout, arg, :kind_of => [ Fixnum ] ) end |