Class: Blender::Cli
- Inherits:
-
Object
- Object
- Blender::Cli
- Defined in:
- lib/blender/cli.rb
Defined Under Namespace
Instance Method Summary collapse
-
#initialize(args) ⇒ Cli
constructor
A new instance of Cli.
- #run(*cmd) ⇒ Object
Constructor Details
#initialize(args) ⇒ Cli
Returns a new instance of Cli.
3 4 5 |
# File 'lib/blender/cli.rb', line 3 def initialize(args) @args = args end |
Instance Method Details
#run(*cmd) ⇒ Object
7 8 9 10 |
# File 'lib/blender/cli.rb', line 7 def run(*cmd) STDERR.puts ">> #{cmd * ' '}" @dry || system(*cmd) end |