Class: Escort::Setup::Configuration::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/escort/setup/configuration/generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(setup) ⇒ Generator

Returns a new instance of Generator.



7
8
9
# File 'lib/escort/setup/configuration/generator.rb', line 7

def initialize(setup)
  @setup = setup
end

Instance Attribute Details

#setupObject (readonly)

Returns the value of attribute setup.



5
6
7
# File 'lib/escort/setup/configuration/generator.rb', line 5

def setup
  @setup
end

Instance Method Details

#default_dataObject



11
12
13
14
15
16
# File 'lib/escort/setup/configuration/generator.rb', line 11

def default_data
  config_hash = init_config_hash
  options([], config_hash[:global][:options]) #global options
  options_for_commands(setup.canonical_command_names_for([]), [], config_hash[:global][:commands])
  config_hash
end