Ravn::CLI::
Tactical
module
Run the Tactical
Kit web service
make_user_config( cmd_flags )
Make a Puma::Configuration hash out of the command-line options.
107 def self::make_user_config( cmd_flags )
108 options = {}
109
110 if cmd_flags.port || cmd_flags.address
111 bindaddr = "tcp://%s:%d" % [
112 cmd_flags.address || '127.0.0.1',
113 cmd_flags.port || Ravn::Tactical::DEFAULT_PORT
114 ]
115 options[:binds] = [ bindaddr ]
116 end
117
118 if env = cmd_flags.env
119 options[ :environment ] = env
120 end
121
122 return options
123 end
Preamble for all subcommands
14 def self::preamble
15 require 'ravn/tactical'
16 end