Class: Chake::ConfigManager::ItamaeBase

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

Direct Known Subclasses

Itamae, ItamaeRemote

Instance Attribute Summary

Attributes inherited from Chake::ConfigManager

#node

Instance Method Summary collapse

Methods inherited from Chake::ConfigManager

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

Constructor Details

This class inherits a constructor from Chake::ConfigManager

Instance Method Details

#apply(config) ⇒ Object



18
19
20
# File 'lib/chake/config_manager/itamae_base.rb', line 18

def apply(config)
  run_itamae(false, config)
end

#convergeObject



4
5
6
7
8
9
# File 'lib/chake/config_manager/itamae_base.rb', line 4

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

  run_itamae(false, *recipes)
end

#previewObject



11
12
13
14
15
16
# File 'lib/chake/config_manager/itamae_base.rb', line 11

def preview
  recipes = node.data['itamae-remote']
  return if recipes.empty?

  run_itamae(true, *recipes)
end