Class: ThreeScaleToolbox::Commands::RemoteCommand::RemoteRenameSubcommand
- Inherits:
-
Cri::CommandRunner
- Object
- Cri::CommandRunner
- ThreeScaleToolbox::Commands::RemoteCommand::RemoteRenameSubcommand
show all
- Includes:
- ThreeScaleToolbox::Command
- Defined in:
- lib/3scale_toolbox/commands/remote_command/remote_rename.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
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/3scale_toolbox/commands/remote_command/remote_rename.rb', line 7
def self.command
Cri::Command.define do
name 'rename'
usage 'rename <old_name> <new_name>'
summary 'remote rename'
description 'Rename remote name'
param :remote_old_name
param :remote_new_name
runner RemoteRenameSubcommand
end
end
|
Instance Method Details
#run ⇒ Object
19
20
21
22
|
# File 'lib/3scale_toolbox/commands/remote_command/remote_rename.rb', line 19
def run
rename_remote arguments[:remote_old_name], arguments[:remote_new_name]
end
|