Method: Command#protocol

Defined in:
lib/git-utils/command.rb

#protocolObject

Returns the protocol of the origin URL (defaults to ssh).



51
52
53
54
55
56
57
# File 'lib/git-utils/command.rb', line 51

def protocol
  if origin_url =~ /https?:\/\//
    'http'
  else
    'ssh'
  end
end