Class: Niso::Cli

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/niso/cli.rb

Instance Method Summary collapse

Instance Method Details

#compile(role = nil) ⇒ Object



21
22
23
# File 'lib/niso/cli.rb', line 21

def compile(role = nil)
  do_compile(role)
end

#create(project = 'niso') ⇒ Object



10
11
12
# File 'lib/niso/cli.rb', line 10

def create(project = 'niso')
  do_create(project)
end

#deploy(first, *args) ⇒ Object



16
17
18
# File 'lib/niso/cli.rb', line 16

def deploy(first, *args)
  do_deploy(first, *args)
end

#setup(provider = "do") ⇒ Object



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

def setup(provider = "do")
  Niso::Cloud.new(self, provider).setup
end

#teardown(provider = "do") ⇒ Object



31
32
33
# File 'lib/niso/cli.rb', line 31

def teardown(provider = "do")
  Niso::Cloud.new(self, provider).teardown
end

#versionObject



36
37
38
# File 'lib/niso/cli.rb', line 36

def version
  puts Gem.loaded_specs['niso'].version.to_s
end