class AbtionScripts::Pushit
Public Class Methods
description()
click to toggle source
# File lib/abtion_scripts/pushit.rb, line 2 def self.description "Pulls code, runs test, pushes your code" end
help()
click to toggle source
# File lib/abtion_scripts/pushit.rb, line 6 def self.help <<-EOF abtion 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/abtion_scripts/pushit.rb, line 15 def run run_script :update run_script :test step "Pushing" do system('git push') end end