Sha256: 90067898c20de4d7574d3ec7efe341bedbe5e0e080cb45246cd76bc1e6fe0740
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
require 'logical-construct/ground-control' require 'mattock/remote-command-task' module LogicalConstruct class RunOnTarget < Mattock::TaskLib include Mattock::CommandLineDSL runtime_setting(:remote_server) def default_configuration(setup) super self.remote_server = setup.proxy_value.remote_server end def remote_task(name, comment = nil) in_namespace do desc comment unless comment.nil? Mattock::RemoteCommandTask.new(name) do |task| task.ssh_options << "ControlMaster=auto" task.ssh_options << "ControlPersist=3600" task.ssh_options << "StrictHostKeyChecking=no" task.ssh_options << "UserKnownHostsFile=/dev/null" task.runtime_definition do |task| copy_settings_to(task) yield(task) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logical-construct-0.0.1.localtesting | lib/logical-construct/ground-control/run-on-target.rb |