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)


23
24
25
# File 'lib/chake/config_manager/itamae.rb', line 23

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

Instance Method Details

#apply(config) ⇒ Object



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

def apply(config)
  run_itamae(config)
end

#convergeObject



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

def converge
  recipes = node.data['itamae']
  return if recipes.empty?

  run_itamae(*recipes)
end

#needs_upload?Boolean

Returns:

  • (Boolean)


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

def needs_upload?
  false
end