Sha256: 5c302b517a90c3309629ef53b955ee9a8f00738cd41d98c4a87426e331b036e8

Contents?: true

Size: 516 Bytes

Versions: 16

Compression:

Stored size: 516 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.app_object}"
  Padrino.require_dependency(app.app_file)
  app.app_object.setup_application!
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
padrino-core-0.9.10 lib/padrino-core/cli/console.rb
padrino-core-0.9.9 lib/padrino-core/cli/console.rb
padrino-core-0.9.7 lib/padrino-core/cli/console.rb
padrino-core-0.9.6 lib/padrino-core/cli/console.rb
padrino-core-0.9.5 lib/padrino-core/cli/console.rb
padrino-core-0.9.4 lib/padrino-core/cli/console.rb
padrino-core-0.9.3 lib/padrino-core/cli/console.rb
padrino-core-0.9.2 lib/padrino-core/cli/console.rb
padrino-core-0.9.1 lib/padrino-core/cli/console.rb
padrino-core-0.9.0 lib/padrino-core/cli/console.rb
padrino-core-0.8.5 lib/padrino-core/cli/console.rb
padrino-core-0.8.4 lib/padrino-core/cli/console.rb
padrino-core-0.8.3 lib/padrino-core/cli/console.rb
padrino-core-0.8.2 lib/padrino-core/cli/console.rb
padrino-core-0.8.1 lib/padrino-core/cli/console.rb
padrino-core-0.8.0 lib/padrino-core/cli/console.rb