class GitCommands::Pull

pull a branch from remote

Public Class Methods

new(branch) click to toggle source
Calls superclass method Command::new
# File lib/straight_line/common/git_commands/pull.rb, line 6
def initialize(branch)
  super('git')
  arg 'checkout'
  arg branch
  pull_command = Command.new 'git'
  pull_command
    .arg('pull origin')
    .arg branch
  sub_command pull_command
end