Sha256: b247cdf0752e6349e02136046b752f24183529f87052424ba80df6910d274738

Contents?: true

Size: 392 Bytes

Versions: 3

Compression:

Stored size: 392 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)
    self.class.send(:define_method, name) do |*x|
      @ec2.send(name, *x)
    end
    @ec2.send(name, *args)
  end
  
  def inspect
    "#<Ec2Tools>"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ec2_tools-0.3.3 lib/ec2_tools.rb
ec2_tools-0.3.2 lib/ec2_tools.rb
ec2_tools-0.3.1 lib/ec2_tools.rb