Sha256: 974b4de03d014092bfccc45a53447913e9ac9524d2033b496ec91fb7220f5546
Contents?: true
Size: 674 Bytes
Versions: 2
Compression:
Stored size: 674 Bytes
Contents
module AwsEc2 class CLI < Command class_option :verbose, type: :boolean class_option :noop, type: :boolean class_option :profile, desc: "profile name to use" desc "create NAME", "create ec2 instance" long_desc Help.text(:create) def create(name) Create.new(options.merge(name: name)).run end desc "spot NAME", "create spot ec2 instance" long_desc Help.text(:spot) def spot(name) Spot.new(options.merge(name: name)).run end desc "userdata NAME", "displays generated userdata script" long_desc Help.text(:user_data) def userdata(name) UserData.new(options.merge(name: name)).run end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws-ec2-0.2.0 | lib/aws_ec2/cli.rb |
aws-ec2-0.1.0 | lib/aws_ec2/cli.rb |