Class: Puma::Daemon::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/puma/daemon/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv = ARGV) ⇒ CLI

Returns a new instance of CLI.



10
11
12
13
# File 'lib/puma/daemon/cli.rb', line 10

def initialize(argv = ARGV)
  self.argv = argv
  self.cli = ::Puma::CLI.new(argv)
end

Instance Attribute Details

#argvObject

Returns the value of attribute argv.



8
9
10
# File 'lib/puma/daemon/cli.rb', line 8

def argv
  @argv
end

#cliObject

Returns the value of attribute cli.



8
9
10
# File 'lib/puma/daemon/cli.rb', line 8

def cli
  @cli
end

Instance Method Details

#runObject



15
16
17
# File 'lib/puma/daemon/cli.rb', line 15

def run
  cli.run
end