Class: Hubcap::Application
Constant Summary
Constants inherited from Group
Instance Attribute Summary collapse
-
#recipe_paths ⇒ Object
readonly
Returns the value of attribute recipe_paths.
Attributes inherited from Group
Instance Method Summary collapse
- #application(*args) ⇒ Object
-
#initialize(parent, name, options = {}, &blk) ⇒ Application
constructor
A new instance of Application.
Methods inherited from Group
#absorb, #cap_attribute, #cap_attributes, #cap_role, #cap_roles, #cap_set, #collectable?, #extra, #extras, #group, #history, #host, #hosts, #hub, #lookup, #param, #params, #processable?, #puppet_role, #puppet_roles, #resolv, #role, #server
Constructor Details
#initialize(parent, name, options = {}, &blk) ⇒ Application
Returns a new instance of Application.
5 6 7 8 |
# File 'lib/hubcap/application.rb', line 5 def initialize(parent, name, = {}, &blk) @recipe_paths = [[:recipes]].flatten.compact super(parent, name, &blk) end |
Instance Attribute Details
#recipe_paths ⇒ Object (readonly)
Returns the value of attribute recipe_paths.
3 4 5 |
# File 'lib/hubcap/application.rb', line 3 def recipe_paths @recipe_paths end |
Instance Method Details
#application(*args) ⇒ Object
11 12 13 |
# File 'lib/hubcap/application.rb', line 11 def application(*args) raise(Hubcap::NestedApplicationDisallowed) end |