Class: Golem::Command::SaveConfig
- Defined in:
- lib/golem/command/save_config.rb
Overview
Command to save configuration file.
Instance Method Summary collapse
-
#run ⇒ Object
Run the command.
Methods inherited from Base
#command, #initialize, #verbose?
Constructor Details
This class inherits a constructor from Golem::Command::Base
Instance Method Details
#run ⇒ Object
Run the command. Calls Golem::Config.save!.
7 8 9 10 |
# File 'lib/golem/command/save_config.rb', line 7 def run Golem::Config.save! print "Config was saved to #{Golem::Config.cfg_path.to_s}\n" if verbose? end |