Class: Gem2exe::Cli::BuildCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Gem2exe::Cli::BuildCommand
- Defined in:
- lib/gem2exe/cli/build_command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/gem2exe/cli/build_command.rb', line 11 def execute cores = Gem2exe.cores + 1 tmpdir = if cache_dir cache_dir else Dir.mktmpdir end if Gem2exe.platform == "darwin" `"#{Gem2exe.rubyc_path}" --openssl-dir=/usr/local/etc/openssl -o "#{name}" -d "#{tmpdir}" --make-args="-j#{cores} --silent" #{name}` else `"#{Gem2exe.rubyc_path}" --openssl-dir=/etc/ssl rubyc -o "#{name}" -d "#{tmpdir}" --make-args="-j#{cores}" #{name}` end end |