Class: PoiseApplicationRuby::Resources::Rails::Provider

Inherits:
Chef::Provider
  • Object
show all
Includes:
AppMixin
Defined in:
lib/poise_application_ruby/resources/rails.rb

Overview

Provider for application_rails.

See Also:

Since:

  • 4.0.0

Instance Method Summary collapse

Instance Method Details

#action_deploy

This method returns an undefined value.

deploy action for application_rails. Ensure all configuration files are created and other deploy tasks resolved.

Since:

  • 4.0.0



173
174
175
176
177
178
179
180
181
# File 'lib/poise_application_ruby/resources/rails.rb', line 173

def action_deploy
  set_state
  notifying_block do
    write_database_yml unless new_resource.database.empty?
    write_secrets_config if new_resource.secret_token
    precompile_assets if new_resource.precompile_assets
    run_migrations if new_resource.migrate
  end
end