module Terrestrial::Cli
Constants
- COMMANDS
- VERSION
Public Class Methods
flight(opts)
click to toggle source
# File lib/terrestrial/cli.rb, line 70 def self.flight(opts) Terrestrial::Cli::Flight.run(opts) end
ignite(opts, args)
click to toggle source
# File lib/terrestrial/cli.rb, line 78 def self.ignite(opts, args) opts[:language] = args[0] Terrestrial::Cli::Ignite.run(opts) end
init(opts)
click to toggle source
# File lib/terrestrial/cli.rb, line 58 def self.init(opts) Terrestrial::Cli::Init.run(opts) end
photoshoot(opts)
click to toggle source
# File lib/terrestrial/cli.rb, line 83 def self.photoshoot(opts) Terrestrial::Cli::Photoshoot.run(opts) end
pull(opts)
click to toggle source
# File lib/terrestrial/cli.rb, line 66 def self.pull(opts) Terrestrial::Cli::Pull.run(opts) end
push(opts)
click to toggle source
# File lib/terrestrial/cli.rb, line 62 def self.push(opts) Terrestrial::Cli::Push.run(opts) end
scan(opts)
click to toggle source
# File lib/terrestrial/cli.rb, line 74 def self.scan(opts) Terrestrial::Cli::Scan.run(opts) end
start(command, opts = {}, args = [])
click to toggle source
# File lib/terrestrial/cli.rb, line 37 def self.start(command, opts = {}, args = []) case command when "init" init(opts) when "flight" flight(opts) when "push" push(opts) when "pull" pull(opts) when "scan" scan(opts) when "ignite" ignite(opts, args) when "photoshoot" photoshoot(opts) else abort "Unknown command #{command}" end end