Class: Tenderloin::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/tenderloin/cli.rb

Instance Method Summary collapse

Instance Method Details

#box(arg1 = nil, arg2 = nil, arg3 = nil, arg4 = nil) ⇒ Object

TODO - make the box command use real args/a subcommand



41
42
43
44
# File 'lib/tenderloin/cli.rb', line 41

def box(arg1=nil, arg2=nil, arg3=nil, arg4=nil)
  setup
  Tenderloin::Commands.box([arg1, arg2, arg3, arg4].compact)
end

#destroyObject



34
35
36
37
# File 'lib/tenderloin/cli.rb', line 34

def destroy()
  setup
  Tenderloin::Commands.destroy
end

#haltObject



28
29
30
31
# File 'lib/tenderloin/cli.rb', line 28

def halt()
  setup
  Tenderloin::Commands.halt
end

#initObject



47
48
49
50
# File 'lib/tenderloin/cli.rb', line 47

def init()
  setup
  Tenderloin::Commands.init
end

#ipObject



72
73
74
75
# File 'lib/tenderloin/cli.rb', line 72

def ip()
  setup
  Tenderloin::Commands.show_ip
end

#jsondumpObject



78
79
80
81
# File 'lib/tenderloin/cli.rb', line 78

def jsondump
  setup
  Tenderloin::Commands.json_dump
end

#provisionObject



59
60
61
62
# File 'lib/tenderloin/cli.rb', line 59

def provision()
  setup
  Tenderloin::Commands.provision
end

#reloadObject



53
54
55
56
# File 'lib/tenderloin/cli.rb', line 53

def reload()
  setup
  Tenderloin::Commands.reload
end

#sshObject



66
67
68
69
# File 'lib/tenderloin/cli.rb', line 66

def ssh()
  setup
  Tenderloin::Commands.ssh(options[:command])
end

#upObject



17
18
19
20
21
22
23
24
25
# File 'lib/tenderloin/cli.rb', line 17

def up()
  setup

  if !options[:provision]
    Tenderloin::Commands.up(:no_provision)
  else
    Tenderloin::Commands.up
  end
end