Class: PoiseRuby::RubyProviders::System

Inherits:
Base
  • Object
show all
Includes:
PoiseLanguages::System::Mixin
Defined in:
lib/poise_ruby/ruby_providers/system.rb

Overview

Since:

  • 2.0.0

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.default_inversion_options(node, resource) ⇒ Object

Since:

  • 2.0.0



50
51
52
53
54
55
# File 'lib/poise_ruby/ruby_providers/system.rb', line 50

def self.default_inversion_options(node, resource)
  super.merge({
    # Install a separate rubygems package? Only needed for 1.8.
    rubygems_package: node['platform_family'] == 'rhel' && node['platform_version'].start_with?('6'),
  })
end

Instance Method Details

#ruby_binaryObject

Output value for the Python binary we are installing. Seems to match package name on all platforms I've checked.

Since:

  • 2.0.0



59
60
61
# File 'lib/poise_ruby/ruby_providers/system.rb', line 59

def ruby_binary
  ::File.join('', 'usr', 'bin', system_package_name)
end