Class: Proxy::RemoteExecution::Ssh::Actions::RunScript

Inherits:
Dynflow::Action
  • Object
show all
Defined in:
lib/smart_proxy_remote_execution_ssh/actions/run_script.rb

Instance Method Summary collapse

Instance Method Details

#plan(*args) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/smart_proxy_remote_execution_ssh/actions/run_script.rb', line 7

def plan(*args)
  mode = Proxy::RemoteExecution::Ssh::Plugin.settings.mode
  case mode
  when :ssh, :'ssh-async'
    plan_action(ScriptRunner, *args)
  when :pull, :'pull-mqtt'
    plan_action(PullScript, *args)
  end
end