Class: BuildStatusServer::CLI

Inherits:
Object
  • Object
show all
Includes:
CommandLineHelper::HelpText
Defined in:
lib/build_status_server/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCLI

Returns a new instance of CLI.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/build_status_server/cli.rb', line 10

def initialize
  set_program_name
  begin
    process_command_line_options
  rescue GetoptLong::MissingArgument
    puts
    show_help_and_exit
  end

  BuildStatusServer::Server.new(options).listen
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end