Class: Toolshed::Commands::ListBranches
- Inherits:
-
Object
- Object
- Toolshed::Commands::ListBranches
- Defined in:
- lib/toolshed/commands/list_branches.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.cli_options ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/toolshed/commands/list_branches.rb', line 6 def self. { banner: 'Usage: list_branches [options]', options: { repository_name: { short_on: '-r', }, } } end |
Instance Method Details
#execute(args, options = {}) ⇒ Object
17 18 19 20 21 |
# File 'lib/toolshed/commands/list_branches.rb', line 17 def execute(args, = {}) branch = Toolshed::Git::Branch.new branch.list Toolshed.die end |