Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
| #!/usr/bin/env ruby | |
| require 'time' | |
| require 'logger' | |
| require 'rubygems' | |
| require 'pingdom-client' | |
| require 'active_support/core_ext/numeric/time' # time extensions, e.g., 5.days | |
| require 'stashboard' | |
| TIME_FORMAT = "%Y-%m-%d %H:%M:%S %Z" # YYYY-MM-DD HH:MM:SS ZZZ |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
| # This knife.rb orig. provided by [email protected] - but any mistakes are mine! | |
| current_dir = File.dirname(__FILE__) | |
| platform = "https://api.opscode.com/organizations" | |
| require 'grit' | |
| branch = Grit::Repo.new("#{current_dir}/..").head.name | |
| case branch |