class Git::Remote
Attributes
fetch_opts[RW]
name[RW]
url[RW]
Public Class Methods
new(base, name)
click to toggle source
# File lib/git/remote.rb, line 6 def initialize(base, name) @base = base config = @base.lib.config_remote(name) @name = name @url = config['url'] @fetch_opts = config['fetch'] end
Public Instance Methods
branch(branch = 'master')
click to toggle source
# File lib/git/remote.rb, line 23 def branch(branch = 'master') Git::Branch.new(@base, "#{@name}/#{branch}") end
fetch(opts={})
click to toggle source
# File lib/git/remote.rb, line 14 def fetch(opts={}) @base.fetch(@name, opts) end
merge(branch = 'master')
click to toggle source
merge this remote locally
# File lib/git/remote.rb, line 19 def merge(branch = 'master') @base.merge("#{@name}/#{branch}") end
remove()
click to toggle source
# File lib/git/remote.rb, line 27 def remove @base.lib.remote_remove(@name) end
to_s()
click to toggle source
# File lib/git/remote.rb, line 31 def to_s @name end