Class: CitizenCodeScripts::Pushit
- Inherits:
-
Base
- Object
- Base
- CitizenCodeScripts::Pushit
show all
- Defined in:
- lib/citizen_code_scripts/pushit.rb
Constant Summary
Constants included
from Colorize
Colorize::COLOR_CODES
Instance Attribute Summary
Attributes inherited from Base
#argv
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#app_names, #app_root, inherited, #initialize, load_scripts_deferred, name, run, script_classes, script_names, scripts, #staging_app_name, #step, #system!
Methods included from Colorize
#colorize, included
Class Method Details
.description ⇒ Object
2
3
4
|
# File 'lib/citizen_code_scripts/pushit.rb', line 2
def self.description
"Pulls code, runs test, pushes your code"
end
|
.help ⇒ Object
6
7
8
9
10
11
12
13
|
# File 'lib/citizen_code_scripts/pushit.rb', line 6
def self.help
"citizen pushit\n\nPulls the latest code, restarts, runs the tests, and pushes\nyour new code up.\n"
end
|
Instance Method Details
#run ⇒ Object
15
16
17
18
19
20
21
22
|
# 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
|