Class: Soaring::SoaringCLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/soaring/cli.rb

Instance Method Summary collapse

Instance Method Details

#detailObject



55
56
57
58
# File 'lib/soaring/cli.rb', line 55

def detail
  detailer = Detailer.new(options)
  detailer.detail
end

#initObject



9
10
11
12
# File 'lib/soaring/cli.rb', line 9

def init
  initializer = Initializer.new(options)
  initializer.initialize_project
end

#packageObject



46
47
48
49
# File 'lib/soaring/cli.rb', line 46

def package
  packager = Packager.new(options)
  packager.package
end

#startObject



29
30
31
32
# File 'lib/soaring/cli.rb', line 29

def start
  runner = Runner.new(options)
  runner.run
end

#stopObject



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 -#{options[:killsignal]} $f; done")
end

#updateObject



18
19
20
21
# File 'lib/soaring/cli.rb', line 18

def update
  initializer = Initializer.new(options)
  initializer.initialize_project
end