Class: Sunzi::Cli
Instance Method Summary collapse
- #compile(role = nil) ⇒ Object
- #create(project = 'sunzi') ⇒ Object
- #deploy(first, *args) ⇒ Object
- #version ⇒ Object
Instance Method Details
#compile(role = nil) ⇒ Object
18 19 20 |
# File 'lib/sunzi/cli.rb', line 18 def compile(role = nil) Sunzi::Command.new.compile(role) end |
#create(project = 'sunzi') ⇒ Object
7 8 9 |
# File 'lib/sunzi/cli.rb', line 7 def create(project = 'sunzi') Sunzi::Command.new.create(project) end |
#deploy(first, *args) ⇒ Object
13 14 15 |
# File 'lib/sunzi/cli.rb', line 13 def deploy(first, *args) Sunzi::Command.new.deploy(first, *args) end |
#version ⇒ Object
23 24 25 |
# File 'lib/sunzi/cli.rb', line 23 def version puts Gem.loaded_specs['sunzi'].version.to_s end |