Sha256: d648129c2460663095ca6ae307fb2967305b18d0ab7c80e2ceda35e65404d0a8

Contents?: true

Size: 167 Bytes

Versions: 2

Compression:

Stored size: 167 Bytes

Contents

require "thor"
require "thor/aws"

class MyAwsCLI < Thor
  include Thor::Aws

  desc :list, "Show list of EC2 instance"

  def list
    p ec2.instances.to_a
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thor-aws-0.0.2 spec/thor/aws/my_aws_cli.rb
thor-aws-0.0.1 spec/thor/aws/my_aws_cli.rb