Class: GitWrapper::Commands::Pull

Inherits:
Git
  • Object
show all
Defined in:
lib/git_wrapper/commands/pull.rb

Instance Attribute Summary

Attributes inherited from Git

#error, #location_folder, #output

Instance Method Summary collapse

Methods inherited from Git

#execute, #initialize, #result, #to_relative_path

Constructor Details

This class inherits a constructor from GitWrapper::Commands::Git

Instance Method Details

#branch(branch) ⇒ Object

[View source]

10
11
12
13
# File 'lib/git_wrapper/commands/pull.rb', line 10

def branch(branch)
  @branch = branch
  self
end

#commandObject

[View source]

15
16
17
# File 'lib/git_wrapper/commands/pull.rb', line 15

def command
  "pull #{@remote} #{@branch}"
end

#remote(remote) ⇒ Object

[View source]

5
6
7
8
# File 'lib/git_wrapper/commands/pull.rb', line 5

def remote(remote)
  @remote = remote
  self
end