Class: Ruby2exe::Cli::BuildCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/ruby2exe/cli/build_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



10
11
12
13
14
15
# File 'lib/ruby2exe/cli/build_command.rb', line 10

def execute
  cores = Ruby2exe.cores + 1
  tmpdir = Dir.mktmpdir

  `"#{Ruby2exe.rubyc_path}" rubyc -d #{tmpdir} -o #{name} --make-args="-j#{cores}" #{name}`
end