Module: Milkode::CdstkCommand
- Defined in:
- lib/milkode/cdstk/cdstk_command.rb
Defined Under Namespace
Classes: NotExistDatabase
Class Method Summary
collapse
Class Method Details
.setdb_reset ⇒ Object
19
20
21
|
# File 'lib/milkode/cdstk/cdstk_command.rb', line 19
def setdb_reset
FileUtils.rm_f(Dbdir.milkode_db_dir)
end
|
.setdb_set(path) ⇒ Object
14
15
16
17
|
# File 'lib/milkode/cdstk/cdstk_command.rb', line 14
def setdb_set(path)
raise NotExistDatabase unless Dbdir.dbdir?(path)
open(Dbdir.milkode_db_dir, "w") {|f| f.print path }
end
|