Class: Headsail::CLI

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

Overview

Handles the start of Headsail via command line

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ CLI

Creates a new CLI object, parsing the arguments that are passed to it, and readying a Launcher to be run



14
15
16
17
18
19
20
21
22
# File 'lib/headsail/cli.rb', line 14

def initialize(argv)
  @argv = argv
  @configure = nil
  @parser = nil

  setup_options
  parse_options
  @launcher = Launcher.new(@configure)
end

Instance Attribute Details

#configureObject (readonly)

Returns the value of attribute configure.



9
10
11
# File 'lib/headsail/cli.rb', line 9

def configure
  @configure
end

#launcherObject (readonly)

Returns the value of attribute launcher.



9
10
11
# File 'lib/headsail/cli.rb', line 9

def launcher
  @launcher
end

Instance Method Details

#runObject



24
25
26
# File 'lib/headsail/cli.rb', line 24

def run
  @launcher.run
end