Class: Kompo::RubyBuildPath
- Inherits:
-
Taski::Section
- Object
- Taski::Section
- Kompo::RubyBuildPath
- Defined in:
- lib/kompo/tasks/ruby_build_path.rb
Overview
Section to get the ruby-build path. Priority:
1. Existing ruby-build installation (via which)
2. macOS: Install via Homebrew
3. Linux: Install via git clone
Defined Under Namespace
Classes: FromHomebrew, FromSource, Installed
Instance Method Summary collapse
Instance Method Details
#impl ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/kompo/tasks/ruby_build_path.rb', line 14 def impl return Installed if ruby_build_installed? if darwin? check_homebrew_available! return FromHomebrew end FromSource end |