Class: Hubcap::Application

Inherits:
Group
  • Object
show all
Defined in:
lib/hubcap/application.rb

Constant Summary

Constants inherited from Group

Group::IP_PATTERN

Instance Attribute Summary collapse

Attributes inherited from Group

#children, #name, #parent

Instance Method Summary collapse

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, options = {}, &blk)
  @recipe_paths = [options[:recipes]].flatten.compact
  super(parent, name, &blk)
end

Instance Attribute Details

#recipe_pathsObject (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