Class: Takelage::SelfConfig
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Takelage::SelfConfig
- Includes:
- ConfigModule, LoggingModule, SystemModule
- Defined in:
- lib/takelage/self/config/cli.rb
Overview
takelage bit
Instance Method Summary collapse
-
#active ⇒ Object
Print active takelage configuration.
-
#default ⇒ Object
Print takelage default configuration.
-
#home ⇒ Object
Print takelage home config file configuration.
-
#project ⇒ Object
Print takelage home config file configuration.
Methods included from ConfigModule
#config, #configured?, #initialize_config
Methods included from SystemModule
#hash_to_yaml, #read_yaml_erb_file, #read_yaml_file, #rm_fr, #run, #run_and_exit, #run_and_fork, #try
Methods included from LoggingModule
Methods inherited from SubCommandBase
Instance Method Details
#active ⇒ Object
Print active takelage configuration.
75 76 77 78 79 80 |
# File 'lib/takelage/self/config/cli.rb', line 75 def active config_active_yaml = hash_to_yaml(config.active) exit false if config_active_yaml == false say config_active_yaml true end |
#default ⇒ Object
Print takelage default configuration.
24 25 26 27 28 29 |
# File 'lib/takelage/self/config/cli.rb', line 24 def default config_default_yaml = hash_to_yaml(config.default) exit false if config_default_yaml == false say config_default_yaml true end |
#home ⇒ Object
Print takelage home config file configuration.
41 42 43 44 45 46 |
# File 'lib/takelage/self/config/cli.rb', line 41 def home config_home_yaml = hash_to_yaml(config.home) exit false if config_home_yaml == false say config_home_yaml true end |
#project ⇒ Object
Print takelage home config file configuration.
58 59 60 61 62 63 |
# File 'lib/takelage/self/config/cli.rb', line 58 def project config_project_yaml = hash_to_yaml(config.project) exit false if config_project_yaml == false say config_project_yaml true end |