Sha256: 0f42baa92c7b4d8fc463a9d8c47adecdc4ef021c8e3eb3629a994655a255c78e

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

class Ec2Tools
  autoload :EC2, 'ec2_tools/ec2'
  autoload :Config, 'ec2_tools/config'
  
  @ec2 = nil
  
  def initialize(config_file = nil)
    @ec2 = EC2.new(Config.load(config_file))
  end
  
  def method_missing(name, *args)
    define_method(:name) do |_args|
      @ec2.send(name, _args)
    end
    self.send(name, args)
  end
  
  def inspect
    "#<Ec2Tools>"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ec2_tools-0.3.0 lib/ec2_tools.rb