Class: Blender::CLI
- Inherits:
-
Thor
- Object
- Thor
- Blender::CLI
- Defined in:
- lib/blender/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
24 25 26 |
# File 'lib/blender/cli.rb', line 24 def self.exit_on_failure? true end |
Instance Method Details
#from_file(*args) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/blender/cli.rb', line 57 def from_file(*args) Configuration[:noop] = [:noop] Configuration[:arguments] = args des = File.read([:file]) $LOAD_PATH.unshift(File.(File.join(File.dirname([:file]), 'lib'))) = { config_file: [:config_file], no_doc: [:quiet] } Blender.blend([:file], ) do |sch| sch.instance_eval(des, __FILE__, __LINE__) end end |