Class: Nit::Command::Push

Inherits:
Nit::Command show all
Defined in:
lib/nit/command/push.rb

Direct Known Subclasses

Pull

Instance Method Summary collapse

Methods inherited from Nit::Command

#initialize

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