class RooOnRails::Checks::Git::Origin
Public Instance Methods
call()
click to toggle source
# File lib/roo_on_rails/checks/git/origin.rb, line 14 def call status, url = shell.run "git config remote.origin.url" fail! "Origin does not seem to be configured." unless status org, repo = url.strip.sub(%r{\.git$}, '').split(%r{[:/]}).last(2) context.git_org = org context.git_repo = repo pass "organisation #{bold org}, repository: #{bold repo}" end
intro()
click to toggle source
Output context:
-
git_org (string)
-
git_repo (string)
# File lib/roo_on_rails/checks/git/origin.rb, line 10 def intro "Checking your Git origin remote..." end