Class: GithubFlowReadiness::Checks::Dockerfile
- Defined in:
- lib/core/github_flow_readiness/checks.rb
Constant Summary collapse
- PATHS =
["Dockerfile", ".controlplane/Dockerfile"].freeze
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from GithubFlowReadiness::Checks::Base
Instance Method Details
#call ⇒ Object
94 95 96 97 98 99 100 101 102 |
# File 'lib/core/github_flow_readiness/checks.rb', line 94 def call path = first_existing_path(PATHS) return pass("Found production Dockerfile at `#{path}`.") if path fail_result( "No production Dockerfile found at `Dockerfile` or `.controlplane/Dockerfile`. " \ "Add and validate one before generating the Control Plane GitHub flow." ) end |