Class: CitizenCodeScripts::Update
- Inherits:
-
Base
- Object
- Base
- CitizenCodeScripts::Update
show all
- Defined in:
- lib/citizen_code_scripts/update.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
10
11
12
|
# File 'lib/citizen_code_scripts/update.rb', line 10
def self.description
"Updates your dev environment automatically"
end
|
.help ⇒ Object
2
3
4
5
6
7
8
|
# File 'lib/citizen_code_scripts/update.rb', line 2
def self.help
<<-EOF
citizen update
This script is a way to update your development environment automatically.
EOF
end
|
Instance Method Details
#run ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/citizen_code_scripts/update.rb', line 14
def run
pull_git
install_dependencies
update_db
remove_old_logs
restart_rails
end
|