Class: Branch::Name::Subcommands::Delete

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

def base_usage
  'config delete'
end

Instance Method Details

#allObject



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

def all
  delete_global_config_file!
  delete_local_config_file!
end

#globalObject



49
50
51
# File 'lib/branch/name/subcommands/delete.rb', line 49

def global
  delete_global_config_file!
end

#localObject



63
64
65
# File 'lib/branch/name/subcommands/delete.rb', line 63

def local
  delete_local_config_file!
end