Class: PoiseApplicationRuby::Resources::Ruby::Resource

Inherits:
PoiseRuby::Resources::RubyRuntime::Resource
  • Object
show all
Includes:
AppMixin
Defined in:
lib/poise_application_ruby/resources/ruby.rb

Overview

An application_ruby resource to manage Ruby runtimes inside an Application cookbook deployment.

Examples:

application '/app' do
  ruby '2'
end

Since:

  • 4.0.0

Instance Method Summary collapse

Instance Method Details

#after_createdObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Set this resource as the app_state's parent ruby.

Since:

  • 4.0.0



48
49
50
51
52
# File 'lib/poise_application_ruby/resources/ruby.rb', line 48

def after_created
  super.tap do |val|
    app_state_ruby(self)
  end
end