lib/arxutils_sqlite3/dbutil/dbconnect.rb in arxutils_sqlite3-0.1.58 vs lib/arxutils_sqlite3/dbutil/dbconnect.rb in arxutils_sqlite3-0.1.59
- old
+ new
@@ -1,18 +1,19 @@
#! -*- encoding : UTF-8 -*-
+# frozen_string_literal: true
-require "fileutils"
-require "yaml"
-require "active_record"
-require "sqlite3"
-require "ykxutils"
+require 'fileutils'
+require 'yaml'
+require 'active_record'
+require 'sqlite3'
+require 'ykxutils'
module Arxutils_Sqlite3
module Dbutil
# DB操作用ユーティリティクラス
class Dbconnect
def self.make_log_file_name(dbconfig, log_file_base_name)
- format("%s-%s", dbconfig.to_s, log_file_base_name)
+ format('%s-%s', dbconfig.to_s, log_file_base_name)
end
def self.db_connect(config, dbconfig, env)
# DB構成ファイルへのパス
dbconfig_path = config.setup_for_dbconfig_path(dbconfig)