Class: Branch::Name::Subcommands::Config

Inherits:
Thor
  • Object
show all
Includes:
Configurable, Exitable, TaskDefaultable
Defined in:
lib/branch/name/subcommands/config.rb

Constant Summary

Constants included from Configurable

Configurable::CONFIG_FILENAME, Configurable::DEFAULT_BRANCH_NAME_OPTIONS

Constants included from Colorizable

Colorizable::ABORTED, Colorizable::ERROR, Colorizable::SUCCESS, Colorizable::WARNING

Instance Method Summary collapse

Methods included from TaskDefaultable

included

Methods included from Exitable

#included

Methods included from Configurable

#create_config_file, #create_global_config_file!, #create_local_config_file!, #delete_global_config_file!, #delete_local_config_file!, #global_config_file, #global_config_file?, #local_config_file, #local_config_file?, #print_global_config_file, #print_local_config_file

Methods included from Locatable

global_folder?, home_folder, local_folder, project_folder, temp_folder

Instance Method Details

#infoObject



28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/branch/name/subcommands/config.rb', line 28

def info
  print_global_config_file
  say ''

  if global_folder?
    say 'NOTE: You are in your global folder. ' \
        'Local and global configurations are the same.'.colorize(:yellow)
    return
  end

  print_local_config_file
end