Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run "brew style --fix awless.rb" #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions Formula/awless.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
class Awless < Formula
version = "v0.1.11"

desc "The Mighty CLI for AWS"
desc "Mighty CLI for AWS"
homepage "https://github.com/wallix/awless"
url "https://github.com/wallix/awless.git",
:tag => version
tag: version
head "https://github.com/wallix/awless.git"

bottle do
root_url "https://github.com/wallix/homebrew-awless/releases/download/#{version}"
cellar :any_skip_relocation
sha256 "dbd1e5f4afd1de6fe00372bd8b6fffa9a448bbf461019094a5061b1b96924096" => :sierra
sha256 cellar: :any_skip_relocation, sierra: "dbd1e5f4afd1de6fe00372bd8b6fffa9a448bbf461019094a5061b1b96924096"
end

depends_on "go" => :build
Expand All @@ -23,15 +22,15 @@ def install

cd dir do
# Make binary
system "go", "run", "release.go", "-tag", "v#{version}", "-brew", "-arch", "#{arch}", "-os", "darwin"
system "go", "run", "release.go", "-tag", "v#{version}", "-brew", "-arch", arch.to_s, "-os", "darwin"
bin.install "awless"

# Install bash completion
output = Utils.popen_read("#{bin}/awless completion bash")
output = Utils.safe_popen_read("#{bin}/awless", "completion", "bash")
(bash_completion/"awless").write output

# Install zsh completion
output = Utils.popen_read("#{bin}/awless completion zsh")
output = Utils.safe_popen_read("#{bin}/awless", "completion", "zsh")
(zsh_completion/"_awless").write output
end
end
Expand Down