Sha256: fb0c4e9f0f1cabee719bc4389444328745313f942e232e31d05bd9ac44d70913
Contents?: true
Size: 501 Bytes
Versions: 1
Compression:
Stored size: 501 Bytes
Contents
require 'thor' require 'shipwright' module Shipwright class CLI < Thor desc "version", "Prints shipwright version" def version puts "shipwright version: #{Shipwright::VERSION}" end desc "build [base] [shipyard]", "Build and push docker image" def build(base=Dir.pwd, shipyard=nil) Shipwright::Builder.build(base, shipyard) rescue MissingShipyardError puts "Set SHIPYARD in your environment or pass it to the build command" exit 1 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shipwright-1.2.0 | lib/shipwright/cli.rb |