Sha256: 83e0eed647e9a877a14fa9afc124a27c3c398e1c9f5327ed044bfbd63e1b6593

Contents?: true

Size: 797 Bytes

Versions: 1

Compression:

Stored size: 797 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 ||= if $stdout.tty?
        Thor::Shell::Color.new
      else
        Thor::Shell::Basic.new
      end
    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

1 entries across 1 versions & 1 rubygems

Version Path
guignol-0.3.4 lib/guignol/shell.rb