Class: ThreeScaleToolbox::Commands::ActiveDocsCommand::Delete::DeleteSubcommand
- Inherits:
-
Cri::CommandRunner
- Object
- Cri::CommandRunner
- ThreeScaleToolbox::Commands::ActiveDocsCommand::Delete::DeleteSubcommand
show all
- Includes:
- ThreeScaleToolbox::Command
- Defined in:
- lib/3scale_toolbox/commands/activedocs_command/delete_command.rb
Class Method Summary
collapse
Instance Method Summary
collapse
#config, #config_file, #exit_with_message, #fetch_required_option, included, #remotes, #threescale_client, #verbose, #verify_ssl
Class Method Details
.command ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/3scale_toolbox/commands/activedocs_command/delete_command.rb', line 8
def self.command
Cri::Command.define do
name 'delete'
usage 'delete <remote> <activedocs-id_or-system-name>'
summary 'Delete an ActiveDocs'
description 'Remove an ActiveDocs'
runner DeleteSubcommand
param :remote
param :activedocs_id_or_system_name
end
end
|
Instance Method Details
#run ⇒ Object
21
22
23
24
|
# File 'lib/3scale_toolbox/commands/activedocs_command/delete_command.rb', line 21
def run
activedocs.delete
puts "ActiveDocs with id: #{activedocs.id} deleted"
end
|