28 lines
964 B
Ruby
28 lines
964 B
Ruby
|
class DockerMachineDriverVultr < Formula
|
||
|
desc "Docker Machine driver plugin for Vultr Cloud"
|
||
|
homepage "https://github.com/janeczku/docker-machine-vultr"
|
||
|
url "https://github.com/janeczku/docker-machine-vultr/archive/v1.2.2.tar.gz"
|
||
|
sha256 "c22e63d832aaa750c70bce5e31655a1c113ba7e75819170b31c2973e0c924e6c"
|
||
|
|
||
|
head "https://github.com/janeczku/docker-machine-vultr.git"
|
||
|
|
||
|
depends_on "go" => :build
|
||
|
depends_on "godep" => :build
|
||
|
depends_on "docker-machine" => :recommended
|
||
|
|
||
|
def install
|
||
|
ENV["GOPATH"] = buildpath
|
||
|
(buildpath/"src/github.com/janeczku/docker-machine-vultr").install buildpath.children
|
||
|
|
||
|
cd "src/github.com/janeczku/docker-machine-vultr" do
|
||
|
system "make"
|
||
|
bin.install "build/docker-machine-driver-vultr-v#{version}" => "docker-machine-driver-vultr"
|
||
|
end
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
assert_match "--vultr-api-endpoint",
|
||
|
shell_output("#{Formula["docker-machine"].bin}/docker-machine create --driver vultr -h")
|
||
|
end
|
||
|
end
|