summaryrefslogtreecommitdiffstats
path: root/lib/git/remote.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/remote.rb')
-rw-r--r--lib/git/remote.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/git/remote.rb b/lib/git/remote.rb
new file mode 100644
index 0000000..6956d47
--- /dev/null
+++ b/lib/git/remote.rb
@@ -0,0 +1,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 \ No newline at end of file