Module: Aspera::Plugins::Transferd::ConfigCommands
- Defined in:
- lib/aspera/plugins/transferd/config_commands.rb
Overview
Mounted on plugin config (manifest mounts), after the modules of bundle xfer: the deprecated command config transferd,
where config included it before the bundle (last command of config).
Class Method Summary collapse
-
.included(base) ⇒ Object
Declare the deprecated command tree in the plugin class that includes the module.
Instance Method Summary collapse
-
#transferd_commands_plugin ⇒ Commands
Instance of the plugin of this bundle (
Commands, the class of the mount), for the deprecated commandconfig transferd.
Class Method Details
.included(base) ⇒ Object
Declare the deprecated command tree in the plugin class that includes the module
26 27 28 29 30 31 32 33 |
# File 'lib/aspera/plugins/transferd/config_commands.rb', line 26 def included(base) base.class_exec do # transferd sub-commands: moved to plugin `transferd`, kept as deprecated alias # `transferd_commands_plugin`: instance of `Commands`, the class that declares the command tree command :transferd, description: "Manage the transfer daemon (#{Cli::Deprecation.new(last: Cli::Plugins::Config::DEPRECATED_LAST, message: 'use plugin transferd')})", mount: {plugin: Commands, instance: :transferd_commands_plugin, only: %i[install list service]} end end |
Instance Method Details
#transferd_commands_plugin ⇒ Commands
Instance of the plugin of this bundle (Commands, the class of the mount), for the deprecated command config transferd
18 19 20 21 |
# File 'lib/aspera/plugins/transferd/config_commands.rb', line 18 def transferd_commands_plugin(**) Log.log.warn { "Command config transferd is #{Cli::Deprecation.new(last: Cli::Plugins::Config::DEPRECATED_LAST, message: 'use transferd')}" } Commands.new(context: context) end |