Exception: Google::Serverless::Exec::UnsupportedStrategy
- Inherits:
-
UsageError
- Object
- StandardError
- UsageError
- Google::Serverless::Exec::UnsupportedStrategy
- Defined in:
- lib/google/serverless/exec.rb
Overview
Unsupported strategy
Instance Attribute Summary collapse
-
#app_env ⇒ Object
readonly
Returns the value of attribute app_env.
-
#strategy ⇒ Object
readonly
Returns the value of attribute strategy.
Instance Method Summary collapse
-
#initialize(strategy, app_env) ⇒ UnsupportedStrategy
constructor
A new instance of UnsupportedStrategy.
Constructor Details
#initialize(strategy, app_env) ⇒ UnsupportedStrategy
Returns a new instance of UnsupportedStrategy.
267 268 269 270 271 272 |
# File 'lib/google/serverless/exec.rb', line 267 def initialize strategy, app_env @strategy = strategy @app_env = app_env super "Strategy \"#{strategy}\" not supported for the #{app_env}" \ " environment" end |
Instance Attribute Details
#app_env ⇒ Object (readonly)
Returns the value of attribute app_env.
274 275 276 |
# File 'lib/google/serverless/exec.rb', line 274 def app_env @app_env end |
#strategy ⇒ Object (readonly)
Returns the value of attribute strategy.
273 274 275 |
# File 'lib/google/serverless/exec.rb', line 273 def strategy @strategy end |