class Blender::Task::Blend

Attributes

blender_strategy[R]

Public Class Methods

new(name, metadata = {}) click to toggle source
Calls superclass method Blender::Task::Base::new
# File lib/blender/tasks/blend.rb, line 25
def initialize(name, metadata = {})
  super
  @command = Struct.new(
    :file,
    :strategy,
    :pass_configs,
    :config_store,
    :concurrency,
    :options
  ).new
  @command.strategy = :default
  @command.concurrency = 1
  @command.pass_configs = []
  @command.config_store = ThreadSafe::Cache.new
  @command.options = ThreadSafe::Hash.new
end

Public Instance Methods

concurrency(n) click to toggle source
# File lib/blender/tasks/blend.rb, line 52
def concurrency(n)
  @command.concurrency = n
end
config(key, opts = {}) click to toggle source
# File lib/blender/tasks/blend.rb, line 60
def config(key, opts = {})
  @command.config_store[key] = opts
end
execute(f) click to toggle source
# File lib/blender/tasks/blend.rb, line 46
def execute(f)
  @command.file = f
end
Also aliased as: file
file(f)
Alias for: execute
options(hash) click to toggle source
# File lib/blender/tasks/blend.rb, line 64
def options(hash)
  @command.options.merge!(hash)
end
pass_configs(*keys) click to toggle source
# File lib/blender/tasks/blend.rb, line 56
def pass_configs(*keys)
  @command.pass_configs += keys unless keys.empty?
end
strategy(st) click to toggle source
# File lib/blender/tasks/blend.rb, line 42
def strategy(st)
  @command.strategy = st
end