Module: Abt::Providers::Git
- Defined in:
- lib/abt/providers/git.rb,
lib/abt/providers/git/commands/branch.rb
Defined Under Namespace
Modules: Commands
Class Method Summary collapse
Class Method Details
.command_class(name) ⇒ Object
13 14 15 16 |
# File 'lib/abt/providers/git.rb', line 13 def self.command_class(name) const_name = Helpers.command_to_const(name) Commands.const_get(const_name) if Commands.const_defined?(const_name) end |
.command_names ⇒ Object
9 10 11 |
# File 'lib/abt/providers/git.rb', line 9 def self.command_names Commands.constants.sort.map { |constant_name| Helpers.const_to_command(constant_name) } end |