Class: Gem::Commands::NewCommand::Configuration
- Defined in:
- lib/gem/commands/new_command/configuration.rb
Instance Method Summary collapse
- #auto_diff ⇒ Object
- #config_version ⇒ Object
- #content_variables ⇒ Object
- #default_template ⇒ Object
- #diff_tool ⇒ Object
- #initial_version ⇒ Object
-
#initialize(config_path) ⇒ Configuration
constructor
A new instance of Configuration.
- #path_variables ⇒ Object
Constructor Details
#initialize(config_path) ⇒ Configuration
Returns a new instance of Configuration.
3 4 5 |
# File 'lib/gem/commands/new_command/configuration.rb', line 3 def initialize(config_path) @config = YAML.load_file(config_path) end |
Instance Method Details
#auto_diff ⇒ Object
27 28 29 |
# File 'lib/gem/commands/new_command/configuration.rb', line 27 def auto_diff @config['auto_diff'] end |
#config_version ⇒ Object
23 24 25 |
# File 'lib/gem/commands/new_command/configuration.rb', line 23 def config_version @config['config_version'] end |
#content_variables ⇒ Object
11 12 13 |
# File 'lib/gem/commands/new_command/configuration.rb', line 11 def content_variables @config['content_variables'] end |
#default_template ⇒ Object
19 20 21 |
# File 'lib/gem/commands/new_command/configuration.rb', line 19 def default_template @config['default_template'] end |
#diff_tool ⇒ Object
7 8 9 |
# File 'lib/gem/commands/new_command/configuration.rb', line 7 def diff_tool @config['diff_tool'] end |
#initial_version ⇒ Object
31 32 33 |
# File 'lib/gem/commands/new_command/configuration.rb', line 31 def initial_version "0.0.1" end |
#path_variables ⇒ Object
15 16 17 |
# File 'lib/gem/commands/new_command/configuration.rb', line 15 def path_variables @config['path_variables'] end |