Class: Foreground::CLI
- Inherits:
-
Object
- Object
- Foreground::CLI
- 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 = (argv) Foreground.config = config Daemon.run(config[:command], config[:pid_file]) end |