Skip to content

Instantly share code, notes, and snippets.

@pbyrne
Created March 18, 2012 20:51
Show Gist options
  • Save pbyrne/2081234 to your computer and use it in GitHub Desktop.
Save pbyrne/2081234 to your computer and use it in GitHub Desktop.
RSpec --format=documentation Output
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
Automation::CLI
.perform(command)
passes the given command to the shell
.say(message)
displays the given message
.perform_in(dir, &block)
changes the script to the given directory
Automation::Config
#initialize
sets up methods for all the attributes it receives
.parse
reads from the .automation.yml file and creates a new config instance
.attributes_from_file
parses the YAML in the automation_config_path
.automation_config_path
is the .automation.yml file in the project directory
#current_git_branch
is not nil
is the project's current branch in git
Automation::Scripts::AutomationSetup
.invoke
ensures that an up-to-date hub is installed and that the GitHub API key is configured
.verify_hub_setup
installs hub if not high enough version
does nothing if hub is high enough version
.set_up_hub
installs hub if not already installed
updates hub if already installed
.sufficient_hub?
is false if hub is not installed
with hub installed
is false if hub is earlier version than required
is true if hub is identical to the required version
is true if hub is greater than the required version
.hub_installed?
returns true if hub is installed
returns false if hub is not installed
returns false if an error occurs when checking
.hub_version
returns 0.0.0 if hub is not installed
parses the version number from the output
.verify_github_api_token
should prompt the user to store the GitHub API token
Automation::Scripts::InstallNode
.invoke
checks out and installs node.js
Automation::Scripts::NewBranch
.invoke
creates a new branch from the specified deploy branch
does nothing and alerts the user to the error if not given a branch name
Automation::Scripts::PushBranch
.invoke
creates a new branch from the specified deploy branch
Automation::Scripts::SSH
#invoke
interactively prompts to choose which server to SSH to
Automation
has a VERSION
Finished in 0.0449 seconds
30 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment