Skip to content

Commit

Permalink
Allow buck to be downloaded and called with multiple targets.
Browse files Browse the repository at this point in the history
It turns out that the way that we constructed the lambda
containing the buck invocation meant that we'd always be
including the first target passed to it, no matter how
many other invocations there were. *sigh* One day we'll
all know how to write nice Ruby. :)
  • Loading branch information
shs96c committed Jun 18, 2016
1 parent 22cec65 commit 3f41a29
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rake-tasks/buck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ def self.download
end

def self.buck_cmd
@@buck_cmd ||= (
(
lambda { |command, args, &block|
args ||= []
buck = Buck::download
buck = []
pex = Buck::download
buck.push(*pex)

args ||= []
buck.push(command)
buck.push(*args)

Expand Down Expand Up @@ -89,7 +91,6 @@ def output
}
)

#block.call(output) if block
end

def self.enhance_task(task)
Expand Down

0 comments on commit 3f41a29

Please sign in to comment.