lib/cp8_cli/repo.rb in cp8_cli-4.2.1 vs lib/cp8_cli/repo.rb in cp8_cli-5.0.0
- old
+ new
@@ -15,11 +15,15 @@
def name
path.split('/').last
end
+ def shorthand
+ "#{user}/#{name}"
+ end
+
def url
- "https://github.com/#{user}/#{name}"
+ "https://github.com/#{shorthand}"
end
private
attr_reader :path