Sha256: dd4016d3c9c154c0d7e4c210c1cbaf6a60032b6914049f70f8ae44bcddf0e6b7
Contents?: true
Size: 614 Bytes
Versions: 2
Compression:
Stored size: 614 Bytes
Contents
require 'thor' require 'chulai' module Chulai class CLI < Thor default_task :deploy desc "deploy", "Deploy the newest version" def deploy base = Base.new base.gemfile base.account base.ssh_key base.ssh_config base.push base.deploy base.open end desc "version", "Prints the chulai's version infomation" def version puts "chulai #{Chulai::VERSION}" end map %w(-v --version) => :version desc "status", "Prints the chulai server status" def status puts "chulai server #{Chulai::Base.status}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chulai-0.1.2 | lib/chulai/cli.rb |
chulai-0.1.1 | lib/chulai/cli.rb |