Module: Rexer::Commands::ActionCallable

Included in:
Install, Reinstall, Uninstall, Update
Defined in:
lib/rexer/commands.rb

Instance Method Summary collapse

Instance Method Details

#call_action(action_class, *init_args) ⇒ Object



6
7
8
9
10
11
# File 'lib/rexer/commands.rb', line 6

def call_action(action_class, *init_args)
  progress_notifier = ProgressNotifier.new

  action = action_class.new(*init_args)
  action.subscribe(progress_notifier).call
end