Sha256: a049ff55e7ec33f9c2955d1981f74f0e06d016c9943d5a45d5212bb31d91f574

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

require 'sunzi/command'

module Sunzi
  class Cli < Thor

    desc 'create', 'Create sunzi project'
    def create(project = 'sunzi')
      Sunzi::Command.new.create(project)
    end

    desc 'deploy [user@host:port] [role] [--sudo]', 'Deploy sunzi project'
    method_options sudo: false
    def deploy(first, *args)
      Sunzi::Command.new.deploy(first, *args)
    end

    desc 'compile', 'Compile sunzi project'
    def compile(role = nil)
      Sunzi::Command.new.compile(role)
    end

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunzi-2.0.0 lib/sunzi/cli.rb