Class: Niso::Cli
Instance Method Summary collapse
- #compile(role = nil) ⇒ Object
- #create(project = 'niso') ⇒ Object
- #deploy(first, *args) ⇒ Object
- #setup(provider = "do") ⇒ Object
- #teardown(provider = "do") ⇒ Object
- #version ⇒ Object
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 |
#version ⇒ Object
36 37 38 |
# File 'lib/niso/cli.rb', line 36 def version puts Gem.loaded_specs['niso'].version.to_s end |