Class: PoiseRuby::Resources::RubyRuntime::Resource
- Inherits:
-
Chef::Resource
- Object
- Chef::Resource
- PoiseRuby::Resources::RubyRuntime::Resource
- Defined in:
- lib/poise_ruby/resources/ruby_runtime.rb
Overview
A ruby_runtime
resource to manage Ruby installations.
Instance Attribute Summary collapse
-
#bundler_version ⇒ String, Boolean
Version of Bundler to install.
-
#version ⇒ String
Version of Ruby to install.
Instance Method Summary collapse
-
#gem_binary ⇒ String
The path to the
gem
binary for this Ruby installation. -
#ruby_binary ⇒ String
The path to the
ruby
binary for this Ruby installation. -
#ruby_environment ⇒ Hash<String, String>
The environment variables for this Ruby installation.
Instance Attribute Details
#bundler_version ⇒ String, Boolean
Disabling the Bundler install may result in other resources being non-functional.
Version of Bundler to install. It set to true
, the latest
available version will be used. If set to false
, Bundler will
not be installed.
49 |
# File 'lib/poise_ruby/resources/ruby_runtime.rb', line 49 attribute(:bundler_version, kind_of: [String, TrueClass, FalseClass], default: true) |
#version ⇒ String
Version of Ruby to install.
41 |
# File 'lib/poise_ruby/resources/ruby_runtime.rb', line 41 attribute(:version, kind_of: String, name_attribute: true) |
Instance Method Details
#gem_binary ⇒ String
The path to the gem
binary for this Ruby installation. This is an
output property.
79 80 81 |
# File 'lib/poise_ruby/resources/ruby_runtime.rb', line 79 def gem_binary @gem_binary ||= provider_for_action(:gem_binary).gem_binary end |
#ruby_binary ⇒ String
The path to the ruby
binary for this Ruby installation. This is an
output property.
57 58 59 |
# File 'lib/poise_ruby/resources/ruby_runtime.rb', line 57 def ruby_binary @ruby_binary ||= provider_for_action(:ruby_binary).ruby_binary end |
#ruby_environment ⇒ Hash<String, String>
The environment variables for this Ruby installation. This is an output property.
69 70 71 |
# File 'lib/poise_ruby/resources/ruby_runtime.rb', line 69 def ruby_environment @ruby_environment ||= provider_for_action(:ruby_environment).ruby_environment end |