Class: Nit::Command::Push
- Inherits:
-
Nit::Command
- Object
- Nit::Command
- Nit::Command::Push
- Defined in:
- lib/nit/command/push.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Nit::Command
Constructor Details
This class inherits a constructor from Nit::Command
Instance Method Details
#call(args, original = `git branch`) ⇒ Object
4 5 6 7 8 |
# File 'lib/nit/command/push.rb', line 4 def call(args, original=`git branch`) branch = current_branch_for(original) system("git #{command} origin #{branch} #{args.join(" ")}") end |