Module: SousChef::NodeHelpers

Included in:
NodeBuilder, TaskBuilder
Defined in:
lib/helpers/node_helpers.rb

Class Method Summary collapse

Class Method Details

.node?(settings) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
# File 'lib/helpers/node_helpers.rb', line 5

def node?(settings)
  settings.is_a? SousChef::Node or settings.has_key?('node_config') or
    settings.has_key?('ssh_config')
end