Module: HomeQ::CLI

Defined in:
lib/homeq/cli.rb

Class Method Summary collapse

Class Method Details

.execute(dest_dir, rakefile) ⇒ Object



27
28
29
30
31
32
33
# File 'lib/homeq/cli.rb', line 27

def self.execute(dest_dir, rakefile)
  args = ARGV.dup
  args += ["-I", "#{HOMEQ_ROOT}/lib/tasks"]
  args += ["-f", rakefile]
  ENV['HOMEQ_CLI_DEST'] = dest_dir
  exec('rake', *args)
end