Sha256: 54c2da571e7e2c7a55ec4918772bfef823c7b45d8a2a00265d8cdc00380746bb

Contents?: true

Size: 719 Bytes

Versions: 4

Compression:

Stored size: 719 Bytes

Contents

require 'thor'

module Guignol
  class Shell < Thor
    def help(*args)
      shell.say
      shell.say "Guignol -- manipulate EC2 instances from your command line.", :cyan
      shell.say
      super
    end

    def self.start
      super(ARGV, :shell => shared_shell)
    end

    def self.shared_shell
      @shared_shell ||= Thor::Base.shell.new
    end

    def self.exit_on_failure?
      true
    end
  end
end


require 'guignol/commands/create'
require 'guignol/commands/kill'
require 'guignol/commands/start'
require 'guignol/commands/stop'
require 'guignol/commands/list'
require 'guignol/commands/uuid'
require 'guignol/commands/fix_dns'
require 'guignol/commands/clone'
require 'guignol/commands/execute'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guignol-0.3.3 lib/guignol/shell.rb
guignol-0.3.2 lib/guignol/shell.rb
guignol-0.3.1 lib/guignol/shell.rb
guignol-0.3.0 lib/guignol/shell.rb