Class: Takelage::SelfConfig

Inherits:
SubCommandBase show all
Includes:
ConfigModule, LoggingModule, SystemModule
Defined in:
lib/takelage/self/config/cli.rb

Overview

takelage bit

Instance Method Summary collapse

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

#initialize_logging, #log

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#activeObject

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

#defaultObject

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

#homeObject

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

#projectObject

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