Sha256: f588d5694ec444ebeb58c967fa3eb0d8ef9ad35123c047a61c52c05609c92c54

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

module Foreground
  class CLI
    include Mixlib::CLI

    option :pid_file,
      :short => '-p FILE',
      :long  => '--pid_file FILE',
      :description => 'PID file for the daemon',
      :required => true

    class << self
      def run(argv=ARGV)
        new.run(argv)
      end
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreground-0.0.4 lib/foreground/cli.rb
foreground-0.0.3 lib/foreground/cli.rb