Sha256: 64581393d8cdbfb5ed5c878ecec7b027ae62308373d166713d09247d98a17910

Contents?: true

Size: 510 Bytes

Versions: 14

Compression:

Stored size: 510 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 " * %-10s mapped to      %s" % [app.name, 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

14 entries across 14 versions & 1 rubygems

Version Path
padrino-core-0.7.9 lib/padrino-core/cli/console.rb
padrino-core-0.7.8 lib/padrino-core/cli/console.rb
padrino-core-0.7.7 lib/padrino-core/cli/console.rb
padrino-core-0.7.6 lib/padrino-core/cli/console.rb
padrino-core-0.7.5 lib/padrino-core/cli/console.rb
padrino-core-0.7.4 lib/padrino-core/cli/console.rb
padrino-core-0.7.3 lib/padrino-core/cli/console.rb
padrino-core-0.7.2 lib/padrino-core/cli/console.rb
padrino-core-0.7.1 lib/padrino-core/cli/console.rb
padrino-core-0.7.0 lib/padrino-core/cli/console.rb
padrino-core-0.6.7 lib/padrino-core/cli/console.rb
padrino-core-0.6.3 lib/padrino-core/cli/console.rb
padrino-core-0.6.2 lib/padrino-core/cli/console.rb
padrino-core-0.6.1 lib/padrino-core/cli/console.rb