Method: Honeycomb::Connections.all_databases
- Defined in:
- lib/honeycomb/model/connections.rb
.all_databases(dir = Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s) ⇒ Object
27 28 29 30 31 |
# File 'lib/honeycomb/model/connections.rb', line 27 def self.all_databases(dir = Pathname.new(__FILE__).dirname.dirname.dirname.dirname..join('data').join('logsql/').to_s) ret = Dir.entries(dir) ret.delete_if {|x| x =~ /^\./} ret end |