Class: Champu

Inherits:
Object
  • Object
show all
Defined in:
lib/champu.rb,
lib/champu/step.rb,
lib/champu/config.rb,
lib/champu/version.rb

Defined Under Namespace

Classes: Config, Step

Constant Summary collapse

VERSION =
"0.0.2"

Instance Method Summary collapse

Constructor Details

#initializeChampu

Returns a new instance of Champu.



9
10
# File 'lib/champu.rb', line 9

def initialize
end

Instance Method Details

#configObject



15
16
17
# File 'lib/champu.rb', line 15

def config
  @config ||= Champu::Config
end

#setup {|config| ... } ⇒ Object

Yields:



11
12
13
14
# File 'lib/champu.rb', line 11

def setup
  yield config
  Chef::Config.from_file(config[:knife_config_file])
end

#step(title) {|temp_step| ... } ⇒ Object

Yields:

  • (temp_step)


18
19
20
21
22
# File 'lib/champu.rb', line 18

def step(title)
  temp_step= Champu::Step.new(title)
  yield(temp_step)
  temp_step
end