Class: Honeycomb::Download

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource, Model::FixtureTable
Defined in:
lib/honeycomb/model/downloads.rb

Class Method Summary collapse

Methods included from Model::FixtureTable

#fixture_table?

Class Method Details

.all_databases(dir = Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s) ⇒ Object



25
26
27
28
29
# File 'lib/honeycomb/model/downloads.rb', line 25

def self.all_databases(dir = Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s)
  ret = Dir.entries(dir)
  ret.delete_if {|x| x =~ /^\./}
  ret
end