Class: EacGit::Local::Remote
- Inherits:
-
Object
- Object
- EacGit::Local::Remote
- Defined in:
- lib/eac_git/local/remote.rb
Constant Summary collapse
- NO_SUCH_REMOTE_CODE =
128
Instance Method Summary collapse
Instance Method Details
#exist? ⇒ Boolean
15 16 17 |
# File 'lib/eac_git/local/remote.rb', line 15 def exist? url end |
#url ⇒ String?
20 21 22 23 24 |
# File 'lib/eac_git/local/remote.rb', line 20 def url local.command('remote', 'get-url', name) .execute!(exit_outputs: { NO_SUCH_REMOTE_CODE => nil }) .if_present(nil, &:strip) end |