Class: Toolshed::Commands::PushGitBranch
- Inherits:
-
Object
- Object
- Toolshed::Commands::PushGitBranch
- Defined in:
- lib/toolshed/commands/push_git_branch.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 |
# File 'lib/toolshed/commands/push_git_branch.rb', line 4 def execute(args, = {}) branch_name = `git rev-parse --abbrev-ref HEAD` system("git push #{Toolshed::Client.push_to_myself} #{branch_name}") end |