Class: Sunzi::Cli

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

Defined Under Namespace

Modules: Capistrano, Database, Secrets

Instance Method Summary collapse

Instance Method Details

#compile(first, *args) ⇒ Object



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

def compile(first, *args)
  do_compile(first, *args)
end

#createObject



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

def create
  do_create
end

#deploy(first, *args) ⇒ Object



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

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

#versionObject



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

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