Class: Blender::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/blender/cli.rb

Direct Known Subclasses

Init, Mix, Start

Defined Under Namespace

Classes: Init, Mix, Start

Instance Method Summary collapse

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