Class: Textus::Action::KeyMv
- Extended by:
- Contract::DSL
- Defined in:
- lib/textus/action/key_mv.rb
Constant Summary collapse
- BURN =
:sync
Instance Method Summary collapse
- #call(container:, call:) ⇒ Object
-
#initialize(old_key:, new_key:, dry_run: false) ⇒ KeyMv
constructor
A new instance of KeyMv.
Methods included from Contract::DSL
arg, around, cli, cli_stdin, contract, contract?, summary, surfaces, verb, view
Methods inherited from Base
Constructor Details
#initialize(old_key:, new_key:, dry_run: false) ⇒ KeyMv
Returns a new instance of KeyMv.
23 24 25 26 27 28 |
# File 'lib/textus/action/key_mv.rb', line 23 def initialize(old_key:, new_key:, dry_run: false) super() @old_key = old_key @new_key = new_key @dry_run = dry_run end |
Instance Method Details
#call(container:, call:) ⇒ Object
30 31 32 33 34 |
# File 'lib/textus/action/key_mv.rb', line 30 def call(container:, call:) run_with_cascade(cascade_target_key, container:, call:) do execute_move(container, call) end end |