Sha256: 3109df3dff6e69c4d480ce38979c4bff756663ca0bb70b75da294862cf60c678

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

require 'cri'
require '3scale_toolbox/base_command'
require '3scale_toolbox/commands/proxy_config_command/helper'
require '3scale_toolbox/commands/proxy_config_command/list_command'
require '3scale_toolbox/commands/proxy_config_command/show_command'
require '3scale_toolbox/commands/proxy_config_command/promote_command'
require '3scale_toolbox/commands/proxy_config_command/export_command'

module ThreeScaleToolbox
  module Commands
    module ProxyConfigCommand
      include ThreeScaleToolbox::Command

      def self.command
        Cri::Command.define do
          name        'proxy-config'
          usage       'proxy-config <sub-command> [options]'
          summary     'proxy-config super command'
          description 'Manage your Proxy Configurations'

          run do |_opts, _args, cmd|
            puts cmd.help
          end
        end
      end

      add_subcommand(List::ListSubcommand)
      add_subcommand(Show::ShowSubcommand)
      add_subcommand(Promote::PromoteSubcommand)
      add_subcommand(Export::ExportSubcommand)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
3scale_toolbox-0.17.1 lib/3scale_toolbox/commands/proxy_config_command.rb
3scale_toolbox-0.17.0 lib/3scale_toolbox/commands/proxy_config_command.rb