Sha256: f4ef0fb2b144a44126cd0b337c40263ee911d1f5027ad15f825e9684abd007cb
Contents?: true
Size: 531 Bytes
Versions: 51
Compression:
Stored size: 531 Bytes
Contents
# -*- coding: utf-8 -*- # # @file # @brief cdstk command set (Only action, not display message.) # @author ongaeshi # @date 2011/12/12 require 'milkode/common/dbdir' module Milkode module CdstkCommand module_function def setdb_set(path) raise NotExistDatabase unless Dbdir.dbdir?(path) open(Dbdir.milkode_db_dir, "w") {|f| f.print path } end def setdb_reset FileUtils.rm_f(Dbdir.milkode_db_dir) end # --- error --- class NotExistDatabase < RuntimeError ; end end end
Version data entries
51 entries across 51 versions & 1 rubygems