Class: DnsMadeEasy::CLI::Commands::LegacyOperation
- Defined in:
- lib/dnsmadeeasy/cli/commands/legacy_operation.rb
Overview
Provides a migration hint for pre-1.0 root-level API operations.
Constant Summary
Constants inherited from Base
Base::DEFAULT_CREDENTIAL_PATHS, Base::SUPPORTED_FORMATS
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(operation_name) ⇒ LegacyOperation
constructor
A new instance of LegacyOperation.
Constructor Details
#initialize(operation_name) ⇒ LegacyOperation
Returns a new instance of LegacyOperation.
14 15 16 17 |
# File 'lib/dnsmadeeasy/cli/commands/legacy_operation.rb', line 14 def initialize(operation_name) super() @operation_name = operation_name end |
Instance Method Details
#call ⇒ Object
19 20 21 22 |
# File 'lib/dnsmadeeasy/cli/commands/legacy_operation.rb', line 19 def call(**) warn "Use `dme account #{@operation_name}` for this API operation." raise ArgumentError, "legacy root operation #{@operation_name.inspect} moved under account" end |