class ThreeScaleToolbox::CRD::ProductDeploymentParser
ProductDeploymentCRDParser parses CRD
Format github.com/3scale/3scale-operator/blob/3scale-2.10.0-CR2/doc/product-reference.md#productdeploymentspec
Attributes
deployment_parser[R]
Public Class Methods
new(cr)
click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 310 def initialize(cr) @deployment_parser = if cr.has_key? 'apicastSelfManaged' ApicastSelfManagedParser.new(cr.fetch('apicastSelfManaged')) elsif cr.has_key? 'apicastHosted' ApicastHostedParser.new(cr.fetch('apicastHosted')) else raise ThreeScaleToolbox::Error, "Unknown deployment option: #{cr.keys}" end end
Public Instance Methods
method_missing(name, *args)
click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 320 def method_missing(name, *args) deployment_parser.public_send(name, *args) end
respond_to_missing?(method_name, include_private = false)
click to toggle source
Calls superclass method
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 324 def respond_to_missing?(method_name, include_private = false) super end