Exception: Google::Serverless::Exec::UnsupportedStrategy

Inherits:
UsageError
  • Object
show all
Defined in:
lib/google/serverless/exec.rb

Overview

Unsupported strategy

Instance Attribute Summary collapse

Instance Method Summary collapse

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_envObject (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

#strategyObject (readonly)

Returns the value of attribute strategy.



273
274
275
# File 'lib/google/serverless/exec.rb', line 273

def strategy
  @strategy
end