Class: AocCli::Commands::GenerateConfig
- Inherits:
-
Object
- Object
- AocCli::Commands::GenerateConfig
- Defined in:
- lib/aoc_cli/commands.rb
Instance Method Summary collapse
- #exec ⇒ Object
-
#initialize(args) ⇒ GenerateConfig
constructor
A new instance of GenerateConfig.
- #respond ⇒ Object
Constructor Details
#initialize(args) ⇒ GenerateConfig
Returns a new instance of GenerateConfig.
222 |
# File 'lib/aoc_cli/commands.rb', line 222 def initialize(args) end |
Instance Method Details
#exec ⇒ Object
223 224 225 226 |
# File 'lib/aoc_cli/commands.rb', line 223 def exec Files::Config::Example.write self end |
#respond ⇒ Object
227 228 229 |
# File 'lib/aoc_cli/commands.rb', line 227 def respond puts "Default config written to #{Paths::Config.path.blue}" end |