Sha256: aa05ed32e9b2b3729bde59df8d9ffc0d32458a77d43dc8f0a27cb5e0fb890956
Contents?: true
Size: 494 Bytes
Versions: 3
Compression:
Stored size: 494 Bytes
Contents
require 'rake' require 'rake/tasklib' module Koine module Tasks class RailsMysqlDump < MysqlDump def initialize(*args) self.dependencies ||= [:environment] super(*args) end private def configuration config = super.reject { |_k, v| v.nil? } rails_config.merge(config) end def rails_config env = Rails.env.to_s Rails.configuration.database_configuration[env].symbolize_keys end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
koine-db_bkp-0.1.4 | lib/koine/tasks/rails_mysql_dump.rb |
koine-db_bkp-0.1.3 | lib/koine/tasks/rails_mysql_dump.rb |
koine-db_bkp-0.1.2 | lib/koine/tasks/rails_mysql_dump.rb |