Skip to content

Commit

Permalink
Fixes syntax error for 1.8.7
Browse files Browse the repository at this point in the history
The only use of Aruba::Config::Hooks#execute was in `api.rb` and
that was passing a single value for the second argument.

So, I removed the splat in the arg and the call to
`instance_exec`.  Since none of this is documented, and no tests
broke, I'm going to assume this is OK, at least to get
a working version for 1.8.7.
  • Loading branch information
Dave Copeland committed Dec 7, 2011
1 parent ff51d78 commit db9f0b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/aruba/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def append(label, block)
@store[label] << block
end

def execute(label, *args, context)
def execute(label, command, context)
@store[label].each do |block|
context.instance_exec(*args, &block)
context.instance_exec(command, &block)
end
end
end
Expand All @@ -41,4 +41,4 @@ def configure
end

self.config = Config.new
end
end

0 comments on commit db9f0b0

Please sign in to comment.