Class: Chake::ConfigManager::Itamae

Inherits:
Chake::ConfigManager show all
Defined in:
lib/chake/config_manager/itamae.rb

Instance Attribute Summary

Attributes inherited from Chake::ConfigManager

#node

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Chake::ConfigManager

all, #bootstrap_steps, get, inherited, init, #initialize, #name, #path, priority, short_name, #to_s

Constructor Details

This class inherits a constructor from Chake::ConfigManager

Class Method Details

.accept?(node) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/chake/config_manager/itamae.rb', line 20

def self.accept?(node)
  node.data.key?('itamae')
end

Instance Method Details

#apply(config) ⇒ Object



12
13
14
# File 'lib/chake/config_manager/itamae.rb', line 12

def apply(config)
  run_itamae(config)
end

#convergeObject



8
9
10
# File 'lib/chake/config_manager/itamae.rb', line 8

def converge
  run_itamae(*node.data['itamae'])
end

#needs_upload?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/chake/config_manager/itamae.rb', line 16

def needs_upload?
  false
end