Last active
August 29, 2015 14:21
-
-
Save Argon-/9e270f35269f5679f671 to your computer and use it in GitHub Desktop.
brew install https://gist.github.com/Argon-/9e270f35269f5679f671/raw/cd424d211a4881be4d6db2f34a7085c1f9cb9225/juju.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Juju < Formula | |
homepage 'https://juju.ubuntu.com' | |
url 'https://launchpad.net/juju-core/1.24/1.24-beta3/+download/juju-core_1.24-beta3.tar.gz' | |
sha1 '2186c1e52115db39338ca57e1d2cf6aa56f5b5b0' | |
depends_on 'go' => :build | |
patch :DATA | |
def install | |
ENV["GOPATH"] = buildpath | |
system "go", "build", "github.com/juju/juju/cmd/juju" | |
system "go", "build", "github.com/juju/juju/cmd/plugins/juju-metadata" | |
bin.install "juju", "juju-metadata" | |
bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-core" | |
end | |
test do | |
system "#{bin}/juju", "version" | |
end | |
end | |
__END__ | |
diff --git a/src/github.com/juju/juju/provider/ec2/instancetype.go b/src/github.com/juju/juju/provider/ec2/instancetype.go | |
index 54da459..b59b8af 100644 | |
--- a/src/github.com/juju/juju/provider/ec2/instancetype.go | |
+++ b/src/github.com/juju/juju/provider/ec2/instancetype.go | |
@@ -298,7 +298,7 @@ var allInstanceTypes = []instances.InstanceType{ | |
Mem: 1024, | |
// Burstable baseline is 10% (from http://aws.amazon.com/ec2/faqs/#burst) | |
CpuPower: instances.CpuPower(10), | |
- VirtType: ¶virtual, | |
+ VirtType: &hvm, | |
}, | |
{ // General Purpose, 3rd generation. | |
Name: "t2.small", | |
@@ -307,7 +307,7 @@ var allInstanceTypes = []instances.InstanceType{ | |
Mem: 2048, | |
// Burstable baseline is 20% (from http://aws.amazon.com/ec2/faqs/#burst) | |
CpuPower: instances.CpuPower(20), | |
- VirtType: ¶virtual, | |
+ VirtType: &hvm, | |
}, | |
{ // General Purpose, 3rd generation. | |
Name: "t2.medium", | |
@@ -316,7 +316,7 @@ var allInstanceTypes = []instances.InstanceType{ | |
Mem: 4096, | |
// Burstable baseline is 40% (from http://aws.amazon.com/ec2/faqs/#burst) | |
CpuPower: instances.CpuPower(40), | |
- VirtType: ¶virtual, | |
+ VirtType: &hvm, | |
}, | |
{ // Compute-optimized, 3rd generation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment