Class: Shipwright::CLI
- Inherits:
-
Thor
- Object
- Thor
- Shipwright::CLI
- Defined in:
- lib/shipwright/cli.rb
Instance Method Summary collapse
Instance Method Details
#build(base = Dir.pwd, shipyard = nil) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/shipwright/cli.rb', line 13 def build(base=Dir.pwd, shipyard=nil) Shipwright::Builder.build(base, shipyard) rescue Shipwright::Builder::MissingShipyardError puts "Set SHIPYARD in your environment or pass it to the build command" exit 1 end |
#version ⇒ Object
8 9 10 |
# File 'lib/shipwright/cli.rb', line 8 def version puts "shipwright version: #{Shipwright::VERSION}" end |