Class: Pec::CLI

Inherits:
Thor show all
Defined in:
lib/pec/cli.rb

Instance Method Summary collapse

Instance Method Details

#destroy(host_name = nil) ⇒ Object



20
21
22
# File 'lib/pec/cli.rb', line 20

def destroy(host_name = nil)
  Pec::Director.execute("destroy", host_name, options)
end

#initObject



7
8
9
10
11
# File 'lib/pec/cli.rb', line 7

def init
  Pec::Init.create_fog_config
  Pec::Init.create_template_dir
  Pec::Init.create_sample_config
end

#status(host_name = nil) ⇒ Object



25
26
27
28
# File 'lib/pec/cli.rb', line 25

def status(host_name = nil)
  say("Current machine stasus:", :yellow)
  Pec::Director.execute("vm_status", host_name)
end

#up(host_name = nil) ⇒ Object



14
15
16
# File 'lib/pec/cli.rb', line 14

def up(host_name = nil)
  Pec::Director.execute("make", host_name)
end