lib/ec2_tools.rb in ec2_tools-0.3.0 vs lib/ec2_tools.rb in ec2_tools-0.3.1

- old
+ new

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