class CitizenCodeScripts::Pushit
Public Class Methods
description()
click to toggle source
# File lib/citizen_code_scripts/pushit.rb, line 2 def self.description "Pulls code, runs test, pushes your code" end
help()
click to toggle source
# File lib/citizen_code_scripts/pushit.rb, line 6 def self.help <<-EOF citizen pushit Pulls the latest code, restarts, runs the tests, and pushes your new code up. EOF end
Public Instance Methods
run()
click to toggle source
# File lib/citizen_code_scripts/pushit.rb, line 15 def run CitizenCodeScripts::Update.run CitizenCodeScripts::Test.run step "Pushing" do system('git push') end end