Module: Moka::ScriptMokaLoader
- Defined in:
- lib/script_moka_loader.rb
Constant Summary collapse
- RUBY =
File.join(*RbConfig::CONFIG.values_at("bindir", "ruby_install_name")) + RbConfig::CONFIG["EXEEXT"]
- SCRIPT_MOKA =
File.join('script', 'moka')
Class Method Summary collapse
Class Method Details
.exec_script_moka! ⇒ Object
6 7 8 |
# File 'lib/script_moka_loader.rb', line 6 def self.exec_script_moka! exec RUBY, SCRIPT_MOKA, *ARGV if in_moka_application? end |
.in_moka_application? ⇒ Boolean
10 11 12 |
# File 'lib/script_moka_loader.rb', line 10 def self.in_moka_application? File.exists?("manifest.yml") end |