class RapidSchedule::DeployToGithubPages
Public Class Methods
deploy(remote_url)
click to toggle source
# File lib/deploy_to_github_pages.rb, line 3 def self.deploy(remote_url) script_path = File.join(File.dirname(__FILE__), 'scripts', 'deploy_to_github_pages.sh') system(script_path, remote_url) end
retrieve_remote_url()
click to toggle source
xxx handle no git rep
# File lib/deploy_to_github_pages.rb, line 9 def self.retrieve_remote_url `git remote show -n origin | grep 'Push' | awk '{print $NF}'`.strip end