Module: ThreeScale::Backend::Server::Utils

Included in:
Falcon, Puma
Defined in:
lib/3scale/backend/server.rb

Instance Method Summary collapse

Instance Method Details

#argv_add(argv, option, switch, *arguments) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/3scale/backend/server.rb', line 20

def argv_add(argv, option, switch, *arguments)
  if option
    argv << switch
    arguments.each { |a| argv << a }
  end
  argv
end