Method: Toolshed::Commands::ListBranches#execute

Defined in:
lib/toolshed/commands/list_branches.rb

#execute(args, options = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/toolshed/commands/list_branches.rb', line 4

def execute(args, options = {})
  git = Toolshed::Git::Github.new
  branches = git.list_branches
  branches.each do |branch|
    puts branch['name']
  end
end