Sha256: e3f2f4e886dec6392a1e97d8bee3d2af3cb46aadf7d3fe78a61e6a257a5ca948

Contents?: true

Size: 858 Bytes

Versions: 2

Compression:

Stored size: 858 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
require 'commander/import'
require 'opsicle'

# :name is optional, otherwise uses the basename of this executable
program :name, 'opsicle'
program :version, Opsicle::VERSION
program :description, 'Opsworks Command Line Utility Belt'
default_command :help

command :deploy do |c|
  c.syntax = "opsicle deploy <environment>"
  c.description = "Deploy Your current app to the given Opswork Stack"
  c.action do |args, options|
    raise ArgumentError, "Environment is required" unless args.first
    Opsicle::Deploy.new(args.first).execute
  end
end

command :list do |c|
  c.syntax = "opsicle list <environment>"
  c.description = "List all apps the given environment"
  c.action do |args, options|
    raise ArgumentError, "Environment is required" unless args.first
    Opsicle::List.new(args.first).execute
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opsicle-0.0.3 bin/opsicle
opsicle-0.0.2 bin/opsicle