Sha256: 46ac1eb5d88535ed93534bb277e1a7c3e3718458b6da38b285fa5eedeb636a51

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

require '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

1 entries across 1 versions & 1 rubygems

Version Path
straight_line-0.1.0.0 lib/common/git_commands/pull.rb