Sha256: a9babd5f9d88c65305a3c7e04ac7fefb745c87906b8ff0c2dd1c440c9f8e2708
Contents?: true
Size: 538 Bytes
Versions: 4
Compression:
Stored size: 538 Bytes
Contents
include Capistrano::DSL module Dkdeploy module Helpers # Helpers for MySQL slow_log tasks module MySQL # checks for existence of mysql_sloq_log on server and prints error message if not present # @param file_path [String] # @return [Boolean] def slow_log_exists?(file_path) return true if !file_path.empty? && test("[ -f #{file_path} ]") error I18n.t('file.not_exists_or_not_accessible_on_host', file: file_path, host: server, scope: :dkdeploy) false end end end end
Version data entries
4 entries across 4 versions & 1 rubygems