Module: Ocran::HostConfigHelper
- Included in:
- Direction
- Defined in:
- lib/ocran/host_config_helper.rb
Overview
Variables describing the host’s build environment.
Class Method Summary collapse
- .bindir ⇒ Object
- .exe_extname ⇒ Object
- .exec_prefix ⇒ Object
- .libruby_so ⇒ Object
- .ruby_exe ⇒ Object
- .rubyw_exe ⇒ Object
- .sitelibdir ⇒ Object
Class Method Details
.bindir ⇒ Object
17 18 19 |
# File 'lib/ocran/host_config_helper.rb', line 17 def bindir @bindir ||= Pathname.new(RbConfig::CONFIG["bindir"]) end |
.exe_extname ⇒ Object
25 26 27 |
# File 'lib/ocran/host_config_helper.rb', line 25 def exe_extname RbConfig::CONFIG["EXEEXT"] || ".exe" end |
.exec_prefix ⇒ Object
9 10 11 |
# File 'lib/ocran/host_config_helper.rb', line 9 def exec_prefix @exec_prefix ||= Pathname.new(RbConfig::CONFIG["exec_prefix"]) end |
.libruby_so ⇒ Object
21 22 23 |
# File 'lib/ocran/host_config_helper.rb', line 21 def libruby_so @libruby_so ||= Pathname.new(RbConfig::CONFIG["LIBRUBY_SO"]) end |
.ruby_exe ⇒ Object
33 34 35 |
# File 'lib/ocran/host_config_helper.rb', line 33 def ruby_exe @ruby_exe ||= (RbConfig::CONFIG["ruby_install_name"] || "ruby") + exe_extname end |
.rubyw_exe ⇒ Object
29 30 31 |
# File 'lib/ocran/host_config_helper.rb', line 29 def rubyw_exe @rubyw_exe ||= (RbConfig::CONFIG["rubyw_install_name"] || "rubyw") + exe_extname end |
.sitelibdir ⇒ Object
13 14 15 |
# File 'lib/ocran/host_config_helper.rb', line 13 def sitelibdir @sitelibdir ||= Pathname.new(RbConfig::CONFIG["sitelibdir"]) end |