Parent

Files

Git::Remote

Attributes

name[RW]
url[RW]
fetch_opts[RW]

Public Class Methods

new(base, name) click to toggle source
    # File lib/git/remote.rb, line 6
 6:     def initialize(base, name)
 7:       @base = base
 8:       config = @base.lib.config_remote(name)
 9:       @name = name
10:       @url = config['url']
11:       @fetch_opts = config['fetch']
12:     end

Public Instance Methods

branch(branch = 'master') click to toggle source
    # File lib/git/remote.rb, line 27
27:     def branch(branch = 'master')
28:       Git::Branch.new(@base, "#{@name}/#{branch}")
29:     end
fetch() click to toggle source
    # File lib/git/remote.rb, line 18
18:     def fetch
19:       @base.fetch(@name)
20:     end
merge(branch = 'master') click to toggle source

merge this remote locally

    # File lib/git/remote.rb, line 23
23:     def merge(branch = 'master')
24:       @base.merge("#{@name}/#{branch}")
25:     end
remove() click to toggle source
    # File lib/git/remote.rb, line 14
14:     def remove
15:       @base.remote_remove(@name)
16:     end
remove() click to toggle source
    # File lib/git/remote.rb, line 31
31:     def remove
32:       @base.lib.remote_remove(@name)     
33:     end
to_s() click to toggle source
    # File lib/git/remote.rb, line 35
35:     def to_s
36:       @name
37:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.