Class: CIRunner::Check::Unsupported

Inherits:
Base
  • Object
show all
Defined in:
lib/ci_runner/check/unsupported.rb

Overview

Check class used for any CI provider not (yet) supported by CIRunner.

When running the ‘ci_runner` CLI, those will be selectable but CI runner will bail out if they get selected. Not sure if its a good idea :shrug:.

Instance Attribute Summary

Attributes inherited from Base

#commit, #repository, #status

Instance Method Summary collapse

Methods inherited from Base

#failed?, #initialize, #success?

Constructor Details

This class inherits a constructor from CIRunner::Check::Base

Instance Method Details

#download_logObject

Raises:



23
24
25
26
27
28
29
30
# File 'lib/ci_runner/check/unsupported.rb', line 23

def download_log
  raise(Error, <<~EOM)
    Aw, snap! This CI is not supported by CI Runner.
    Please open an Issue on GitHub to let me know you are interested:

    {{info:https://github.com/Edouard-chin/ci_runner/issues/new}}
  EOM
end

#nameString

Returns:

  • (String)


13
14
15
# File 'lib/ci_runner/check/unsupported.rb', line 13

def name
  "#{@name} (Unsupported by CI Runner)"
end

#providerString

Returns:

  • (String)


18
19
20
# File 'lib/ci_runner/check/unsupported.rb', line 18

def provider
  ""
end