Sha256: 4b1d37bd8c1dca929f9be9534bf7226b4dd88f66e0bd0291677ea588752978a9

Contents?: true

Size: 765 Bytes

Versions: 14

Compression:

Stored size: 765 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'ruby_app'

$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), %w[lib]))

require '_APPLICATION_DOWNCODE_'

RubyApp::Configuration.load!([ File.join(RubyApp::ROOT, %w[configuration.yml]),
                               File.join(_APPLICATION_UPCODE_::ROOT, %w[configuration.yml])])
RubyApp::Log.open!
RubyApp::Application.create!

Signal.trap('HUP') do
  begin
    RubyApp::Log.reopen!
  rescue => exception
    RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
  end
end

Signal.trap('EXIT') do
  begin
    RubyApp::Application.destroy!
    RubyApp::Log.close!
    RubyApp::Configuration.unload!
  rescue => exception
    RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.15 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.14 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.13 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.12 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.11 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.10 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.9 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.5 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.4 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.3 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.2 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.1 lib/ruby_app/templates/application/console.rb
RubyApp-0.7.0 lib/ruby_app/templates/application/console.rb