Class: PoiseRuby::RubyProviders::ChefRuby
- Defined in:
- lib/poise_ruby/ruby_providers/chef.rb
Overview
Inversion provider for the ruby_runtime
resource to use whatever Ruby is
currently running, generally Chef's omnibus-d Ruby.
Instance Method Summary collapse
-
#action_install
The
install
action for theruby_runtime
resource. -
#action_uninstall
The
uninstall
action for theruby_runtime
resource. -
#ruby_binary ⇒ String
The path to the running Ruby binary as determined via RbConfig.
Instance Method Details
#action_install
This method returns an undefined value.
The install
action for the ruby_runtime
resource.
34 35 36 |
# File 'lib/poise_ruby/ruby_providers/chef.rb', line 34 def action_install # No-op, already installed! end |
#action_uninstall
This method returns an undefined value.
The uninstall
action for the ruby_runtime
resource.
41 42 43 |
# 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 ⇒ String
The path to the running Ruby binary as determined via RbConfig.
48 49 50 |
# File 'lib/poise_ruby/ruby_providers/chef.rb', line 48 def ruby_binary Gem.ruby end |