Class: LogicalConstruct::CreateConstructDirectory

Inherits:
RunOnTarget
  • Object
show all
Defined in:
lib/logical-construct/ground-control/setup/create-construct-directory.rb

Constant Summary

Constants inherited from RunOnTarget

RunOnTarget::SSH_OPTIONS

Instance Method Summary collapse

Methods inherited from RunOnTarget

#remote_task

Instance Method Details

#default_configuration(setup) ⇒ Object



9
10
11
12
13
# File 'lib/logical-construct/ground-control/setup/create-construct-directory.rb', line 9

def default_configuration(setup)
  self.construct_dir = setup.construct_dir
  self.remote_server = setup.proxy_value.remote_server
  super
end

#defineObject



15
16
17
18
19
20
# File 'lib/logical-construct/ground-control/setup/create-construct-directory.rb', line 15

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