Skip to content

Commit

Permalink
boot2docker: style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DomT4 authored and zmwangx committed Sep 26, 2016
1 parent 9c21e53 commit 9bf23dc
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Formula/boot2docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ class Boot2docker < Formula
# Boot2docker and docker are generally updated at the same time.
# Please update the version of docker too
url "https://github.com/boot2docker/boot2docker-cli.git",
:tag => "v1.8.0", :revision => "9a2606673efcfa282fb64a5a5c9e1b2f89d86fb4"
:tag => "v1.8.0",
:revision => "9a2606673efcfa282fb64a5a5c9e1b2f89d86fb4"
revision 1

head "https://github.com/boot2docker/boot2docker-cli.git"
Expand All @@ -20,21 +21,22 @@ class Boot2docker < Formula
depends_on "go" => :build

def install
(buildpath + "src/github.com/boot2docker/boot2docker-cli").install Dir[buildpath/"*"]
ENV["GOPATH"] = buildpath
dir = buildpath/"src/github.com/boot2docker/boot2docker-cli"
dir.install Dir[buildpath/"*"]

cd "src/github.com/boot2docker/boot2docker-cli" do
ENV["GOPATH"] = buildpath
cd dir do
system "go", "get", "-d"
system "make", "goinstall"
end

bin.install "bin/boot2docker-cli" => "boot2docker"
end

def caveats; <<-EOF.undent
Rebuild the VM after an upgrade with:
boot2docker destroy && boot2docker upgrade
EOF
def caveats; <<-EOS.undent
Rebuild the VM after an upgrade with:
boot2docker destroy && boot2docker upgrade
EOS
end

def plist; <<-EOS.undent
Expand All @@ -57,6 +59,6 @@ def plist; <<-EOS.undent
end

test do
system "#{bin}/boot2docker", "version"
system bin/"boot2docker", "version"
end
end

0 comments on commit 9bf23dc

Please sign in to comment.