57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/blender/cli.rb', line 57
def from_file(*args)
noop_mode = options[:noop]
des = File.read(options[:file])
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(options[:file]), 'lib')))
scheduler_options = {
config_file: options[:config_file],
no_doc: options[:quiet]
}
Blender.blend(options[:file], scheduler_options) do |sch|
sch.update_config(:noop, noop_mode)
sch.update_config(:arguments, args)
sch.instance_eval(des, __FILE__, __LINE__)
end
end
|