Sha256: d355d6e0b53ebfbd132ffa9af428533ac110eb13942bfa91c6ec263391d4212e

Contents?: true

Size: 501 Bytes

Versions: 9

Compression:

Stored size: 501 Bytes

Contents

# Reloads classes
def reload!
  Padrino.reload!
end

# Show applications
def applications
  puts "==== List of Mounted Applications ====\n\n"
  Padrino.mounted_apps.each do |app|
    puts " * '#{app.name}' mapped to '#{app.uri_root}'"
  end
  puts
  Padrino.mounted_apps.collect { |app| "#{app.name} => #{app.uri_root}" }
end

# Load apps
Padrino.mounted_apps.each do |app|
  puts "=> Loading Application #{app.name}"
  Padrino.require_dependency(app.app_file)
  app.app_object.setup_application!
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
padrino-core-0.5.0 lib/padrino-core/tasks/console.rb
padrino-core-0.4.6 lib/padrino-core/tasks/console.rb
padrino-core-0.4.5 lib/padrino-core/tasks/console.rb
padrino-core-0.2.9 lib/padrino-core/tasks/console.rb
padrino-core-0.2.6 lib/padrino-core/tasks/console.rb
padrino-core-0.2.5 lib/padrino-core/tasks/console.rb
padrino-core-0.2.2 lib/padrino-core/tasks/console.rb
padrino-core-0.2.1 lib/padrino-core/tasks/console.rb
padrino-core-0.2.0 lib/padrino-core/tasks/console.rb