Sha256: b9c3d4875aff5ea90940ce472457dd1a93a3befb0827dce8625408cc706dac0c
Contents?: true
Size: 597 Bytes
Versions: 4
Compression:
Stored size: 597 Bytes
Contents
require 'logical-construct/ground-control/run-on-target' module LogicalConstruct class CreateConstructDirectory < RunOnTarget default_namespace :construct_directory setting(:construct_dir) def default_configuration(setup) self.construct_dir = setup.construct_dir self.remote_server = setup.proxy_value.remote_server super end def define remote_task(:create, "Create #{construct_dir} on the remote server") do |task| task.command = cmd "mkdir", "-p", construct_dir end task :remote_groundwork => self[:create] end end end
Version data entries
4 entries across 4 versions & 1 rubygems