Class: PoiseRuby::RubyBuild::Provider
- Inherits:
-
PoiseRuby::RubyProviders::Base
- Object
- PoiseRuby::RubyProviders::Base
- PoiseRuby::RubyBuild::Provider
- Includes:
- Chef::Mixin::ShellOut
- Defined in:
- lib/poise_ruby/ruby_build/provider.rb
Overview
Inversion provider for ruby_runtime to install via ruby-build.
Class Method Summary collapse
-
.default_inversion_options(node, resource) ⇒ Hash
Add default options for ruby-build.
Instance Method Summary collapse
-
#ruby_binary ⇒ String
Path to the compiled Ruby binary.
Class Method Details
.default_inversion_options(node, resource) ⇒ Hash
Add default options for ruby-build.
37 38 39 40 41 42 43 44 |
# File 'lib/poise_ruby/ruby_build/provider.rb', line 37 def self.(node, resource) super.merge({ install_doc: false, install_repo: 'https://github.com/sstephenson/ruby-build.git', install_rev: 'master', prefix: '/opt/ruby_build', }) end |
Instance Method Details
#ruby_binary ⇒ String
Path to the compiled Ruby binary.
49 50 51 |
# File 'lib/poise_ruby/ruby_build/provider.rb', line 49 def ruby_binary ::File.join(['prefix'], 'builds', new_resource.name, 'bin', 'ruby') end |