Class: Golem::Command::SaveConfig

Inherits:
Base
  • Object
show all
Defined in:
lib/golem/command/save_config.rb

Overview

Command to save configuration file.

Constant Summary

Instance Method Summary (collapse)

Methods inherited from Base

#command, #initialize, #verbose?

Constructor Details

This class inherits a constructor from Golem::Command::Base

Instance Method Details

- (Object) run

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