Class: ThreeScaleToolbox::Commands::PlansCommand::Import::ImportPlanFeaturesStep

Inherits:
Object
  • Object
show all
Includes:
Step
Defined in:
lib/3scale_toolbox/commands/plans_command/import/import_plan_features_step.rb

Instance Attribute Summary

Attributes included from Step

#context

Instance Method Summary collapse

Methods included from Step

#artifacts_resource, #file, #find_feature_by_system_name, #find_metric_by_system_name, #initialize, #invalidate_service_methods, #invalidate_service_metrics, #plan, #plan_system_name, #resource_features, #resource_limits, #resource_methods, #resource_metrics, #resource_plan, #resource_pricing_rules, #result, #service, #service_features, #service_hits, #service_methods, #service_metrics, #service_metrics_and_methods, #service_system_name, #threescale_client

Instance Method Details

#callObject

Writes Plan features



9
10
11
12
13
14
# File 'lib/3scale_toolbox/commands/plans_command/import/import_plan_features_step.rb', line 9

def call
  missing_features.each do |feature|
    create_plan_feature(feature)
    puts "Created plan feature: #{feature}"
  end
end