class PoiseRuby::RubyProviders::ChefRuby

Inversion provider for the `ruby_runtime` resource to use whatever Ruby is currently running, generally Chef's omnibus-d Ruby.

@since 2.0.0 @provides chef

Public Instance Methods

action_install() click to toggle source

The `install` action for the `ruby_runtime` resource.

@return [void]

# File lib/poise_ruby/ruby_providers/chef.rb, line 34
def action_install
  # No-op, already installed!
end
action_uninstall() click to toggle source

The `uninstall` action for the `ruby_runtime` resource.

@return [void]

# File lib/poise_ruby/ruby_providers/chef.rb, line 41
def action_uninstall
  raise PoiseRuby::Error.new("You cannot uninstall Chef's Ruby.")
end
ruby_binary() click to toggle source

The path to the running Ruby binary as determined via RbConfig.

@return [String]

# File lib/poise_ruby/ruby_providers/chef.rb, line 48
def ruby_binary
  Gem.ruby
end