Class: Taketo::Constructs::Group

Inherits:
BaseConstruct show all
Defined in:
lib/taketo/constructs/group.rb

Instance Attribute Summary

Attributes inherited from BaseConstruct

#default_server_config, #name, #parent

Instance Method Summary collapse

Methods inherited from BaseConstruct

#initialize, #node_type, #parents, #path, #qualified_name

Methods included from AssociatedNodes

included

Constructor Details

This class inherits a constructor from Taketo::Constructs::BaseConstruct

Instance Method Details

#has_servers?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/taketo/constructs/group.rb', line 13

def has_servers?
  has_deeply_nested_nodes?(:servers)
end

#rails_envObject



9
10
11
# File 'lib/taketo/constructs/group.rb', line 9

def rails_env
  parent.rails_env if parent.respond_to?(:rails_env)
end