Class: Aidp::Watch::RepositoryClient::BinaryChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/aidp/watch/repository_client.rb

Overview

Binary availability checker for testing

Instance Method Summary collapse

Instance Method Details

#gh_cli_available?Boolean

Returns:

  • (Boolean)


16
17
18
19
20
21
# File 'lib/aidp/watch/repository_client.rb', line 16

def gh_cli_available?
  _stdout, _stderr, status = Open3.capture3("gh", "--version")
  status.success?
rescue Errno::ENOENT
  false
end