Project

the_hulk

0.0
No commit activity in last 3 years
No release in over 3 years
Hulk takes a .yml file with sets of commands that it can run sequentially.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
>= 0
 Project Readme

hulk

Hulk is an ultra simple command line tool for running a list of bash commands synchronously.

Installing

Just run the following command to install hulk onto your system.

gem install the_hulk

Usage

After adding a hulk.yml file to your project root, simply reference the following example to add hulk builds.

push:
 - "git add ."
 - "git commit -m 'Made some changes.'"
 - "git push origin master"
deploy:
 - --push
 - "git push -f heroku dev:master"

The above example will give you the following:

  1. Calling hulk push will run the 3 commands you see under push:, in the order they appear, in a synchronous manner.
  2. Calling hulk deploy will run the push build, and then run the deploy to the heroku server.

Nesting builds

As shown in the above example, you can call other builds within your current build. Simply prefix the build name with -- and hulk will understand what you're asking. After running the other build, hulk will continue on with the initial build called.

You can mix and match builds with commands, and nest builds as frequent, or infrequent as you like. Hulk can handle it.

Using variables

Hulk can support variables in commands, with the use of $$ as a placeholder.

build:
 - "rake precompile:$$"
 - "git add ."
 - "git commit -m '$$'"
 - "git push -f heroku:$$"

Feel free to use multiple variables.

perform:
- "$$ and then $$ followed by $$"

Hulk will prompt you for each variable in your build before it runs, and then you may step away as Hulk smashes through your build with your assigned variables.