Class: Escort::Setup::Configuration::Generator
- Inherits:
-
Object
- Object
- Escort::Setup::Configuration::Generator
- Defined in:
- lib/escort/setup/configuration/generator.rb
Instance Attribute Summary collapse
-
#setup ⇒ Object
readonly
Returns the value of attribute setup.
Instance Method Summary collapse
- #default_data ⇒ Object
-
#initialize(setup) ⇒ Generator
constructor
A new instance of Generator.
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
#setup ⇒ Object (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_data ⇒ Object
11 12 13 14 15 16 |
# File 'lib/escort/setup/configuration/generator.rb', line 11 def default_data config_hash = init_config_hash ([], config_hash[:global][:options]) #global options (setup.canonical_command_names_for([]), [], config_hash[:global][:commands]) config_hash end |