module Milkode::CdstkCommand

Public Instance Methods

setdb_reset() click to toggle source
# File lib/milkode/cdstk/cdstk_command.rb, line 18
def setdb_reset
  FileUtils.rm_f(Dbdir.milkode_db_dir)
end
setdb_set(path) click to toggle source
# File lib/milkode/cdstk/cdstk_command.rb, line 13
def setdb_set(path)
  raise NotExistDatabase unless Dbdir.dbdir?(path)
  open(Dbdir.milkode_db_dir, "w") {|f| f.print path }
end