summaryrefslogtreecommitdiffstats
path: root/lib/git/remote.rb
blob: 6956d47662af228ab5f14eff02a6e0c18bac17bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module Git
  class Remote < Path
    
    attr_accessor :name, :url, :fetch
    
    @base = nil
    
    def initialize(base, name)
      @base = base
      config = @base.lib.config_remote(name)
      @name = name
      @url = config['url']
      @fetch = config['fetch']
    end
    
    def to_s
      @name
    end
    
  end
end