Module: ThreeScaleToolbox

Defined in:
lib/3scale_toolbox.rb,
lib/3scale_toolbox/error.rb,
lib/3scale_toolbox/helper.rb,
lib/3scale_toolbox/remotes.rb,
lib/3scale_toolbox/version.rb,
lib/3scale_toolbox/commands.rb,
lib/3scale_toolbox/base_command.rb,
lib/3scale_toolbox/openapi/oas3.rb,
lib/3scale_toolbox/proxy_logger.rb,
lib/3scale_toolbox/configuration.rb,
lib/3scale_toolbox/cli/output_flag.rb,
lib/3scale_toolbox/entities/method.rb,
lib/3scale_toolbox/entities/metric.rb,
lib/3scale_toolbox/openapi/swagger.rb,
lib/3scale_toolbox/resource_reader.rb,
lib/3scale_toolbox/cli/json_printer.rb,
lib/3scale_toolbox/cli/yaml_printer.rb,
lib/3scale_toolbox/entities/account.rb,
lib/3scale_toolbox/entities/backend.rb,
lib/3scale_toolbox/entities/service.rb,
lib/3scale_toolbox/cli/error_handler.rb,
lib/3scale_toolbox/entities/activedocs.rb,
lib/3scale_toolbox/entities/application.rb,
lib/3scale_toolbox/entities/base_entity.rb,
lib/3scale_toolbox/3scale_client_factory.rb,
lib/3scale_toolbox/commands/copy_command.rb,
lib/3scale_toolbox/commands/help_command.rb,
lib/3scale_toolbox/entities/proxy_config.rb,
lib/3scale_toolbox/commands/plans_command.rb,
lib/3scale_toolbox/entities/backend_usage.rb,
lib/3scale_toolbox/commands/3scale_command.rb,
lib/3scale_toolbox/commands/import_command.rb,
lib/3scale_toolbox/commands/remote_command.rb,
lib/3scale_toolbox/commands/update_command.rb,
lib/3scale_toolbox/entities/backend_method.rb,
lib/3scale_toolbox/entities/backend_metric.rb,
lib/3scale_toolbox/cli/custom_table_printer.rb,
lib/3scale_toolbox/commands/account_command.rb,
lib/3scale_toolbox/commands/backend_command.rb,
lib/3scale_toolbox/commands/methods_command.rb,
lib/3scale_toolbox/commands/metrics_command.rb,
lib/3scale_toolbox/commands/product_command.rb,
lib/3scale_toolbox/commands/service_command.rb,
lib/3scale_toolbox/entities/application_plan.rb,
lib/3scale_toolbox/commands/activedocs_command.rb,
lib/3scale_toolbox/commands/application_command.rb,
lib/3scale_toolbox/commands/proxy_config_command.rb,
lib/3scale_toolbox/entities/backend_mapping_rule.rb,
lib/3scale_toolbox/commands/import_command/openapi.rb,
lib/3scale_toolbox/commands/policy_registry_command.rb,
lib/3scale_toolbox/attribute_filters/attribute_filter.rb,
lib/3scale_toolbox/commands/import_command/import_csv.rb,
lib/3scale_toolbox/commands/plans_command/export/step.rb,
lib/3scale_toolbox/commands/plans_command/import/step.rb,
lib/3scale_toolbox/commands/remote_command/remote_add.rb,
lib/3scale_toolbox/commands/plans_command/list_command.rb,
lib/3scale_toolbox/commands/plans_command/show_command.rb,
lib/3scale_toolbox/commands/remote_command/remote_list.rb,
lib/3scale_toolbox/commands/import_command/openapi/step.rb,
lib/3scale_toolbox/commands/plans_command/apply_command.rb,
lib/3scale_toolbox/commands/proxy_config_command/helper.rb,
lib/3scale_toolbox/commands/account_command/find_command.rb,
lib/3scale_toolbox/commands/backend_command/copy_command.rb,
lib/3scale_toolbox/commands/copy_command/service_command.rb,
lib/3scale_toolbox/commands/methods_command/list_command.rb,
lib/3scale_toolbox/commands/metrics_command/list_command.rb,
lib/3scale_toolbox/commands/plans_command/create_command.rb,
lib/3scale_toolbox/commands/plans_command/delete_command.rb,
lib/3scale_toolbox/commands/plans_command/export_command.rb,
lib/3scale_toolbox/commands/plans_command/import_command.rb,
lib/3scale_toolbox/commands/product_command/copy_command.rb,
lib/3scale_toolbox/commands/remote_command/remote_remove.rb,
lib/3scale_toolbox/commands/remote_command/remote_rename.rb,
lib/3scale_toolbox/commands/service_command/copy_command.rb,
lib/3scale_toolbox/commands/service_command/list_command.rb,
lib/3scale_toolbox/commands/service_command/show_command.rb,
lib/3scale_toolbox/commands/import_command/openapi/method.rb,
lib/3scale_toolbox/commands/methods_command/apply_command.rb,
lib/3scale_toolbox/commands/metrics_command/apply_command.rb,
lib/3scale_toolbox/commands/service_command/apply_command.rb,
lib/3scale_toolbox/commands/methods_command/create_command.rb,
lib/3scale_toolbox/commands/methods_command/delete_command.rb,
lib/3scale_toolbox/commands/metrics_command/create_command.rb,
lib/3scale_toolbox/commands/metrics_command/delete_command.rb,
lib/3scale_toolbox/commands/service_command/create_command.rb,
lib/3scale_toolbox/commands/service_command/delete_command.rb,
lib/3scale_toolbox/commands/update_command/service_command.rb,
lib/3scale_toolbox/commands/activedocs_command/list_command.rb,
lib/3scale_toolbox/commands/activedocs_command/apply_command.rb,
lib/3scale_toolbox/commands/application_command/list_command.rb,
lib/3scale_toolbox/commands/application_command/show_command.rb,
lib/3scale_toolbox/commands/import_command/openapi/operation.rb,
lib/3scale_toolbox/commands/activedocs_command/create_command.rb,
lib/3scale_toolbox/commands/activedocs_command/delete_command.rb,
lib/3scale_toolbox/commands/application_command/apply_command.rb,
lib/3scale_toolbox/commands/backend_command/copy_command/task.rb,
lib/3scale_toolbox/commands/proxy_config_command/list_command.rb,
lib/3scale_toolbox/commands/proxy_config_command/show_command.rb,
lib/3scale_toolbox/commands/service_command/copy_command/task.rb,
lib/3scale_toolbox/commands/application_command/create_command.rb,
lib/3scale_toolbox/commands/application_command/delete_command.rb,
lib/3scale_toolbox/attribute_filters/service_id_from_ref_filter.rb,
lib/3scale_toolbox/commands/import_command/openapi/mapping_rule.rb,
lib/3scale_toolbox/commands/proxy_config_command/export_command.rb,
lib/3scale_toolbox/commands/policy_registry_command/copy_command.rb,
lib/3scale_toolbox/commands/proxy_config_command/promote_command.rb,
lib/3scale_toolbox/commands/plans_command/export/read_app_plan_step.rb,
lib/3scale_toolbox/commands/import_command/openapi/create_method_step.rb,
lib/3scale_toolbox/commands/import_command/openapi/create_service_step.rb,
lib/3scale_toolbox/commands/plans_command/export/read_plan_limits_step.rb,
lib/3scale_toolbox/commands/import_command/openapi/update_policies_step.rb,
lib/3scale_toolbox/commands/plans_command/export/read_plan_methods_step.rb,
lib/3scale_toolbox/commands/plans_command/export/read_plan_metrics_step.rb,
lib/3scale_toolbox/commands/plans_command/export/read_plan_features_step.rb,
lib/3scale_toolbox/commands/plans_command/import/import_plan_limits_step.rb,
lib/3scale_toolbox/commands/import_command/openapi/create_activedocs_step.rb,
lib/3scale_toolbox/commands/plans_command/import/import_plan_metrics_step.rb,
lib/3scale_toolbox/commands/service_command/copy_command/copy_limits_task.rb,
lib/3scale_toolbox/commands/backend_command/copy_command/copy_methods_task.rb,
lib/3scale_toolbox/commands/backend_command/copy_command/copy_metrics_task.rb,
lib/3scale_toolbox/commands/plans_command/export/write_artifacts_file_step.rb,
lib/3scale_toolbox/commands/plans_command/import/import_plan_features_step.rb,
lib/3scale_toolbox/commands/service_command/copy_command/copy_methods_task.rb,
lib/3scale_toolbox/commands/service_command/copy_command/copy_metrics_task.rb,
lib/3scale_toolbox/commands/import_command/openapi/create_mapping_rule_step.rb,
lib/3scale_toolbox/commands/product_command/copy_command/copy_backends_task.rb,
lib/3scale_toolbox/commands/service_command/copy_command/copy_policies_task.rb,
lib/3scale_toolbox/commands/import_command/openapi/update_service_proxy_step.rb,
lib/3scale_toolbox/commands/service_command/copy_command/copy_app_plans_task.rb,
lib/3scale_toolbox/commands/plans_command/export/read_plan_pricing_rules_step.rb,
lib/3scale_toolbox/commands/service_command/copy_command/copy_activedocs_task.rb,
lib/3scale_toolbox/commands/plans_command/import/create_or_update_app_plan_step.rb,
lib/3scale_toolbox/commands/plans_command/import/import_plan_pricing_rules_step.rb,
lib/3scale_toolbox/commands/service_command/copy_command/copy_pricingrules_task.rb,
lib/3scale_toolbox/commands/backend_command/copy_command/copy_mapping_rules_task.rb,
lib/3scale_toolbox/commands/import_command/openapi/update_service_oidc_conf_step.rb,
lib/3scale_toolbox/commands/service_command/copy_command/bump_proxy_version_task.rb,
lib/3scale_toolbox/commands/service_command/copy_command/copy_mapping_rules_task.rb,
lib/3scale_toolbox/commands/service_command/copy_command/copy_service_proxy_task.rb,
lib/3scale_toolbox/commands/update_command/service_command/delete_activedocs_task.rb,
lib/3scale_toolbox/commands/service_command/copy_command/destroy_mapping_rules_task.rb,
lib/3scale_toolbox/commands/update_command/service_command/copy_service_settings_task.rb,
lib/3scale_toolbox/commands/service_command/copy_command/create_or_update_service_task.rb,
lib/3scale_toolbox/commands/product_command/copy_command/delete_target_backend_usages_task.rb,
lib/3scale_toolbox/commands/backend_command/copy_command/create_or_update_target_backend_task.rb

Defined Under Namespace

Modules: AttributeFilters, CLI, Command, Commands, Entities, Helper, OpenAPI, ResourceReader Classes: ActiveDocsNotFoundError, Configuration, Error, InvalidIdError, InvalidUrlError, ProxyLogger, Remotes, ThreeScaleApiError, ThreeScaleClientFactory, UnexpectedError

Constant Summary collapse

VERSION =
'0.17.0'

Class Method Summary collapse

Class Method Details

.default_config_fileObject



38
39
40
41
# File 'lib/3scale_toolbox.rb', line 38

def self.default_config_file
  # THREESCALE_CLI_CONFIG env var has priority over $HOME/.3scalerc.yaml file
  ENV['THREESCALE_CLI_CONFIG'] || File.join(Gem.user_home, '.3scalerc.yaml')
end

.load_pluginsObject



30
31
32
# File 'lib/3scale_toolbox.rb', line 30

def self.load_plugins
  plugin_paths.each { |plugin_path| require plugin_path }
end

.plugin_pathsObject



34
35
36
# File 'lib/3scale_toolbox.rb', line 34

def self.plugin_paths
  Gem.find_files('3scale_toolbox_plugin')
end