lib/pullr/local_repository.rb in pullr-0.1.1 vs lib/pullr/local_repository.rb in pullr-0.1.2
- old
+ new
@@ -45,9 +45,21 @@
extend SCM.lookup(@scm)
end
#
+ # The name of the repository.
+ #
+ # @return [String]
+ # The local repository name.
+ #
+ # @since 0.1.2
+ #
+ def name
+ File.basename(@path)
+ end
+
+ #
# The control directory used by the SCM.
#
# @return [String]
# The name of the control directory.
#