class PoiseRuby::Resources::RubyRuntime::Resource
A `ruby_runtime` resource to manage Ruby installations.
@provides ruby_runtime @action install @action uninstall @example
ruby_runtime '2.1.2'
Public Instance Methods
gem_binary()
click to toggle source
The path to the `gem` binary for this Ruby installation. This is an output property.
@return [String] @example
execute "#{resources('ruby_runtime[2.2.2]').gem_binary} install myapp"
# 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()
click to toggle source
The path to the `ruby` binary for this Ruby installation. This is an output property.
@return [String] @example
execute "#{resources('ruby_runtime[2.2.2]').ruby_binary} myapp.rb"
# 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()
click to toggle source
The environment variables for this Ruby installation. This is an output property.
@return [Hash<String, String>] @example
execute '/opt/myapp.py' do environment resources('ruby_runtime[2.2.2]').ruby_environment end
# File lib/poise_ruby/resources/ruby_runtime.rb, line 69 def ruby_environment @ruby_environment ||= provider_for_action(:ruby_environment).ruby_environment end