Module: Aibika::Host
- Defined in:
- lib/aibika/host.rb
Overview
Variables describing the host's build environment.
Class Method Summary collapse
- .bindir ⇒ Object
- .exec_prefix ⇒ Object
- .exeext ⇒ Object
- .libruby_so ⇒ Object
- .ruby_exe ⇒ Object
- .rubyw_exe ⇒ Object
- .sitelibdir ⇒ Object
- .tempdir ⇒ Object
Class Method Details
.bindir ⇒ Object
15 16 17 |
# File 'lib/aibika/host.rb', line 15 def bindir @bindir ||= Aibika.Pathname(RbConfig::CONFIG['bindir']) end |
.exec_prefix ⇒ Object
7 8 9 |
# File 'lib/aibika/host.rb', line 7 def exec_prefix @exec_prefix ||= Aibika.Pathname(RbConfig::CONFIG['exec_prefix']) end |
.exeext ⇒ Object
23 24 25 |
# File 'lib/aibika/host.rb', line 23 def exeext RbConfig::CONFIG['EXEEXT'] || '.exe' end |
.libruby_so ⇒ Object
19 20 21 |
# File 'lib/aibika/host.rb', line 19 def libruby_so @libruby_so ||= Aibika.Pathname(RbConfig::CONFIG['LIBRUBY_SO']) end |
.ruby_exe ⇒ Object
31 32 33 |
# File 'lib/aibika/host.rb', line 31 def ruby_exe @ruby_exe ||= (RbConfig::CONFIG['ruby_install_name'] || 'ruby') + exeext end |
.rubyw_exe ⇒ Object
27 28 29 |
# File 'lib/aibika/host.rb', line 27 def rubyw_exe @rubyw_exe ||= (RbConfig::CONFIG['rubyw_install_name'] || 'rubyw') + exeext end |
.sitelibdir ⇒ Object
11 12 13 |
# File 'lib/aibika/host.rb', line 11 def sitelibdir @sitelibdir ||= Aibika.Pathname(RbConfig::CONFIG['sitelibdir']) end |
.tempdir ⇒ Object
35 36 37 |
# File 'lib/aibika/host.rb', line 35 def tempdir @tempdir ||= Aibika.Pathname(ENV['TEMP']) end |