Sha256: eafcc35d2870e490a821134ea6df5ca8270b5e622f5f44938e5198f3966939e6

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

require 'straight_line/common/command'

module GitCommands
  # pull a branch from remote
  class Pull < Command
    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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
straight_line-0.1.4.0 lib/straight_line/common/git_commands/pull.rb
straight_line-0.1.3.0 lib/straight_line/common/git_commands/pull.rb
straight_line-0.1.2.0 lib/straight_line/common/git_commands/pull.rb
straight_line-0.1.1.0 lib/straight_line/common/git_commands/pull.rb