aboutsummaryrefslogtreecommitdiffstats
path: root/HomebrewFormula/harvester.rb
diff options
context:
space:
mode:
authorTeddy Wing2019-06-01 16:25:11 +0200
committerTeddy Wing2019-06-01 16:25:11 +0200
commit9b87a2600ff5263b6c3a22affdc5b02f3e7fb102 (patch)
treef460e82ccfd5033b96e0668ff0e7d700b0289029 /HomebrewFormula/harvester.rb
downloadhomebrew-formulae-9b87a2600ff5263b6c3a22affdc5b02f3e7fb102.tar.bz2
Add formulae from existing projects
Copy over all Homebrew formulae that I've been putting in project repositories. Now that I have a few formulae, grouping them together in a tap makes it more easy to install and upgrade them. No need to tap multiple repositories or use the full URL to a formula.
Diffstat (limited to 'HomebrewFormula/harvester.rb')
-rw-r--r--HomebrewFormula/harvester.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/HomebrewFormula/harvester.rb b/HomebrewFormula/harvester.rb
new file mode 100644
index 0000000..c5213dd
--- /dev/null
+++ b/HomebrewFormula/harvester.rb
@@ -0,0 +1,22 @@
+class Harvester < Formula
+ desc "A program that wraps 'hcl' to interact with Harvest with a Timetasker-like interface"
+ homepage "https://github.com/teddywing/harvester"
+ url "https://github.com/teddywing/harvester/archive/v0.2.0.tar.gz"
+ sha256 "50533a5d61a6363581bb0cd5856ec7f7175ae60933001e761fa96520b4aed897"
+
+ def install
+ bin.install "harvester"
+ bash_completion.install "harvester.bash-completion" => "harvester"
+ end
+
+ def caveats; <<~EOS
+ To enable tab completion, add the following to your bash profile:
+
+ source #{etc}/bash_completion.d/harvester
+ EOS
+ end
+
+ test do
+ shell_output("bash -c 'harvester --help'")
+ end
+end