Class: Soaring::SoaringCLI
- Inherits:
-
Thor
- Object
- Thor
- Soaring::SoaringCLI
- Defined in:
- lib/soaring/cli.rb
Instance Method Summary collapse
Instance Method Details
#detail ⇒ Object
55 56 57 58 |
# File 'lib/soaring/cli.rb', line 55 def detail detailer = Detailer.new() detailer.detail end |
#init ⇒ Object
9 10 11 12 |
# File 'lib/soaring/cli.rb', line 9 def init initializer = Initializer.new() initializer.initialize_project end |
#package ⇒ Object
46 47 48 49 |
# File 'lib/soaring/cli.rb', line 46 def package packager = Packager.new() packager.package end |
#start ⇒ Object
29 30 31 32 |
# File 'lib/soaring/cli.rb', line 29 def start runner = Runner.new() runner.run end |
#stop ⇒ Object
37 38 39 |
# File 'lib/soaring/cli.rb', line 37 def stop exec("for f in $(ps aux | grep rackup | grep -v grep | tr -s ' ' ' ' | cut -d ' ' -f2); do echo killed $f; kill -#{[:killsignal]} $f; done") end |
#update ⇒ Object
18 19 20 21 |
# File 'lib/soaring/cli.rb', line 18 def update initializer = Initializer.new() initializer.initialize_project end |