No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

deploy 395B

12345678910111213141516171819
  1. #!/usr/bin/env ruby
  2. # This script aims to invoke the commands required to deploy this tree of code
  3. # whenever we finish making a commit to 'master'.
  4. #
  5. # This has light dependencies on the aliases I currently use for my shell.
  6. def current_branch
  7. `git currentbranch`
  8. end
  9. def is_on_master?
  10. current_branch == 'master'
  11. end
  12. def invoke_deploy
  13. `rake deploy`
  14. end
  15. invoke_deploy if is_on_master?