Module: Ripl::Padrino::Commands

Defined in:
lib/ripl/commands.rb

Instance Method Summary collapse

Instance Method Details

#applicationsObject

Show applications



10
11
12
13
14
15
16
17
# File 'lib/ripl/commands.rb', line 10

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

#reload!Object

Reloads classes



5
6
7
# File 'lib/ripl/commands.rb', line 5

def reload!
  ::Padrino.reload!
end