Skip to content

Commit

Permalink
Formula polishing
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
  • Loading branch information
ahmetb committed Apr 25, 2017
1 parent c4b6ad9 commit a861562
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Formula/kubectx.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
class Kubectx < Formula
desc "Tool that can switch between kubectl contexts easily and create aliases"
homepage "https://github.com/ahmetb/kubectx"
url "https://github.com/ahmetb/kubectx/archive/v0.1.zip"
sha256 "3d014027e38c476164638b2138f190c43fd65a22ec50035c36926555233247c0"
desc "Tool that can switch between kubectl contexts easily and create aliases"
homepage "https://github.com/ahmetb/kubectx"
url "https://github.com/ahmetb/kubectx/archive/v0.1.tar.gz"
sha256 "841817f928af25061b1b6794400394c3e6e807e8a1c48c179f1fd8bdd553ca79"

bottle :unneeded
bottle :unneeded

def install
bin.install "kubectx"
bash_completion.install "completion/kubectx.bash" => "kubectx"
end
def install
bin.install "kubectx"
bash_completion.install "completion/kubectx.bash" => "kubectx"
end

test do
system "kubectx", "--help"
end
def caveats; <<-EOS.undent
To install zsh completion, add this to your .zshrc:
def caveats; <<-EOS.undent
To install zsh completion, add this to your .zshrc:
[ -f /usr/local/etc/bash_completion.d/kubectx ] && source /usr/local/etc/bash_completion.d/kubectx
EOS
end

[ -f /usr/local/etc/bash_completion.d/kubectx ] && source /usr/local/etc/bash_completion.d/kubectx
EOS
end
test do
system "kubectx", "--help"
end
end

0 comments on commit a861562

Please sign in to comment.