Class: CC::CLI::GlobalConfig
- Defined in:
- lib/cc/cli/global_config.rb
Constant Summary collapse
- FILE_NAME =
"/config.yml".freeze
- DEFAULT_CONFIG =
{ "check-version" => true, }.freeze
Instance Method Summary collapse
-
#check_version ⇒ Object
(also: #check_version?)
Config entries.
- #check_version=(value) ⇒ Object
- #uuid ⇒ Object
Methods inherited from FileStore
Constructor Details
This class inherits a constructor from CC::CLI::FileStore
Instance Method Details
#check_version ⇒ Object Also known as: check_version?
Config entries
15 16 17 |
# File 'lib/cc/cli/global_config.rb', line 15 def check_version data["check-version"] end |
#check_version=(value) ⇒ Object
20 21 22 |
# File 'lib/cc/cli/global_config.rb', line 20 def check_version=(value) data["check-version"] = value == true end |
#uuid ⇒ Object
24 25 26 |
# File 'lib/cc/cli/global_config.rb', line 24 def uuid data["uuid"] ||= UUID.new.generate end |