Class: LogicalConstruct::CopyFiles
- Inherits:
-
Mattock::TaskLib
- Object
- Mattock::TaskLib
- LogicalConstruct::CopyFiles
- Defined in:
- lib/logical-construct/ground-control/setup/copy-files.rb
Instance Method Summary collapse
Instance Method Details
#default_configuration(setup, build_files) ⇒ Object
52 53 54 55 56 57 |
# File 'lib/logical-construct/ground-control/setup/copy-files.rb', line 52 def default_configuration(setup, build_files) super() self.files_dir = build_files.target_dir self.remote_server = setup.proxy_value.remote_server self.construct_dir = setup.construct_dir end |
#define ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/logical-construct/ground-control/setup/copy-files.rb', line 59 def define in_namespace do RemoteCopyFile.define_task(self, :construct_dir) do |task| task.runtime_definition do task.remote_server = remote_server end task.exclude << "*.so" task.exclude << "*.dynlib" task.source_path = File::join(files_dir, "*") task.destination_path = construct_dir end end bracket_task(:remote_groundwork, :construct_dir, :remote_config) task root_task => in_namespace(:construct_dir) task :remote_config => root_task end |