class Blender::Task::Scp

Public Class Methods

new(name, metadata = {}) click to toggle source
Calls superclass method Blender::Task::Base::new
# File lib/blender/tasks/scp.rb, line 28
def initialize(name, metadata = {})
  super
  @command = Struct.new(:direction, :source, :target, :options).new
  @command.target = name
  @command.source = name
  @command.options = {}
  @direction = :upload
end

Public Instance Methods

chunk_size(val) click to toggle source
# File lib/blender/tasks/scp.rb, line 53
def chunk_size(val)
  @command.options[:chunk_size] = val
end
from(source) click to toggle source
# File lib/blender/tasks/scp.rb, line 37
def from(source)
  @command.source = source
end
preserve(val) click to toggle source
# File lib/blender/tasks/scp.rb, line 49
def preserve(val)
  @command.options[:preserve] = val
end
recursive(val) click to toggle source
# File lib/blender/tasks/scp.rb, line 45
def recursive(val)
  @command.options[:recursive] = val
end
to(target) click to toggle source
# File lib/blender/tasks/scp.rb, line 41
def to(target)
  @command.target = target
end