blob: c0b4fb0a6447fe75e3cea754d740ca03bccee1f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require "resource"
module Language
module Go
# Given a set of resources, stages them to a gopath for
# building go software.
# The resource names should be the import name of the package,
# e.g. `resource "github.com/foo/bar"`
def self.stage_deps resources, target
godeps = resources.grep(Resource::Go)
godeps.each {|resource| resource.stage target}
end
end
end
|