Class: AbtionScripts::Update
- Inherits:
-
Base
- Object
- Base
- AbtionScripts::Update
show all
- Defined in:
- lib/abtion_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, #bundler?, #ci?, #heroku, #heroku_app_name, inherited, #initialize, load_scripts_deferred, name, #rails?, run, #run_script, script_classes, script_names, scripts, #step, #system!, #yarn?
Methods included from Colorize
#colorize, included
Class Method Details
.description ⇒ Object
10
11
12
|
# File 'lib/abtion_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/abtion_scripts/update.rb', line 2
def self.help
"abtion update\n\nThis script is a way to update your development environment automatically.\n"
end
|
Instance Method Details
#run ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/abtion_scripts/update.rb', line 14
def run
pull_git
install_dependencies
update_db
remove_old_logs
restart_servers
end
|