Module: LogDB
- Defined in:
- lib/logutils.rb,
lib/logutils/db/models.rb,
lib/logutils/db/schema.rb,
lib/logutils/db/deleter.rb
Defined Under Namespace
Modules: Models
Classes: CreateDB, Deleter
Class Method Summary
collapse
Class Method Details
.banner ⇒ Object
39
40
41
|
# File 'lib/logutils.rb', line 39
def self.banner
"logdb #{LogUtils::VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end
|
.config_path ⇒ Object
47
48
49
|
# File 'lib/logutils.rb', line 47
def self.config_path
"#{root}/config"
end
|
.create ⇒ Object
51
52
53
|
# File 'lib/logutils.rb', line 51
def self.create
CreateDB.up
end
|
.delete! ⇒ Object
delete ALL records (use with care!)
56
57
58
59
|
# File 'lib/logutils.rb', line 56
def self.delete!
puts '*** deleting log table records/data...'
Deleter.new.run
end
|
.root ⇒ Object
43
44
45
|
# File 'lib/logutils.rb', line 43
def self.root
"#{File.expand_path( File.dirname(File.dirname(__FILE__)) )}"
end
|
.stats ⇒ Object
62
63
64
|
# File 'lib/logutils.rb', line 62
def self.stats
end
|