module Breathing
Constants
- VERSION
Public Class Methods
clear()
click to toggle source
# File lib/breathing.rb, line 23 def clear ActiveRecord::Base.establish_connection Breathing::ChangeLog.delete_all end
export()
click to toggle source
# File lib/breathing.rb, line 28 def export ActiveRecord::Base.establish_connection Breathing::Excel.new.create end
install()
click to toggle source
# File lib/breathing.rb, line 13 def install ActiveRecord::Base.establish_connection Breathing::Installer.new.install end
render_terminal_table(table_name:, id: 1)
click to toggle source
# File lib/breathing.rb, line 33 def render_terminal_table(table_name:, id: 1) ActiveRecord::Base.establish_connection puts Breathing::TerminalTable.new(table_name).render(id: id) end
tail_f(table_name:, id: 1)
click to toggle source
# File lib/breathing.rb, line 38 def tail_f(table_name:, id: 1) ActiveRecord::Base.establish_connection table = Breathing::TerminalTable.new(table_name) loop do text = table.render(id: id) if text.present? puts text id = table.last_id + 1 end sleep 5 end end
uninstall()
click to toggle source
# File lib/breathing.rb, line 18 def uninstall ActiveRecord::Base.establish_connection Breathing::Installer.new.uninstall end