Class: Cyclid::Cli::RemoteVerifier
- Inherits:
-
Linter::Verifier
- Object
- Linter::Verifier
- Cyclid::Cli::RemoteVerifier
- Defined in:
- lib/cyclid/cli/linter.rb
Overview
Verify by fetching Stages from a remote server
Instance Method Summary collapse
-
#initialize(args) ⇒ RemoteVerifier
constructor
A new instance of RemoteVerifier.
-
#stage_exists?(name) ⇒ Boolean
Find a Stage by it’s name on a remote server.
Constructor Details
#initialize(args) ⇒ RemoteVerifier
Returns a new instance of RemoteVerifier.
25 26 27 28 29 |
# File 'lib/cyclid/cli/linter.rb', line 25 def initialize(args) @client = args[:client] super end |
Instance Method Details
#stage_exists?(name) ⇒ Boolean
Find a Stage by it’s name on a remote server
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/cyclid/cli/linter.rb', line 32 def stage_exists?(name) @client.stage_get(@client.config.organization, name) Bertrand::EXIST rescue StandardError => ex if ex.to_s == 'stage does not exist' Bertrand::NOT_EXIST else Bertrand::UNKNOWN end end |