Class: Foreground::CLI

Inherits:
Object
  • Object
show all
Includes:
Mixlib::CLI
Defined in:
lib/foreground/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.run(argv = ARGV) ⇒ Object



26
27
28
# File 'lib/foreground/cli.rb', line 26

def run(argv=ARGV)
  new.run(argv)
end

Instance Method Details

#run(argv) ⇒ Object



31
32
33
34
35
# File 'lib/foreground/cli.rb', line 31

def run(argv)
  cmd = parse_options(argv)
  Foreground.config = config
  Daemon.run(config[:command], config[:pid_file])
end