Class: Branch::Name::Subcommands::Init

Inherits:
Thor
  • Object
show all
Includes:
Configurable, Exitable, TaskDefaultable, ThorNestedSubcommand
Defined in:
lib/branch/name/subcommands/init.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

Class Method Summary collapse

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

Class Method Details

.base_usageObject



19
20
21
# File 'lib/branch/name/subcommands/init.rb', line 19

def base_usage
  'config init'
end

Instance Method Details

#globalObject



35
36
37
# File 'lib/branch/name/subcommands/init.rb', line 35

def global
  create_global_config_file!
end

#localObject



50
51
52
# File 'lib/branch/name/subcommands/init.rb', line 50

def local
  create_local_config_file!
end