Sha256: de43c764f05038c98bdb3164905cf726e2b515feebd72b88d07533513aff2ab2

Contents?: true

Size: 897 Bytes

Versions: 1

Compression:

Stored size: 897 Bytes

Contents

require '3scale_toolbox/commands/metrics_command/create_command'
require '3scale_toolbox/commands/metrics_command/list_command'
require '3scale_toolbox/commands/metrics_command/apply_command'
require '3scale_toolbox/commands/metrics_command/delete_command'

module ThreeScaleToolbox
  module Commands
    module MetricsCommand
      include ThreeScaleToolbox::Command
      def self.command
        Cri::Command.define do
          name        'metrics'
          usage       'metrics <sub-command> [options]'
          summary     'metrics super command'
          description 'Metrics commands'

          run do |_opts, _args, cmd|
            puts cmd.help
          end
        end
      end
      add_subcommand(Create::CreateSubcommand)
      add_subcommand(List::ListSubcommand)
      add_subcommand(Apply::ApplySubcommand)
      add_subcommand(Delete::DeleteSubcommand)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
3scale_toolbox-0.10.0 lib/3scale_toolbox/commands/metrics_command.rb