Sha256: 83f7b14788321635beac78d301788fcd0ab62006dc1605198e0405d2e3c27108
Contents?: true
Size: 769 Bytes
Versions: 1
Compression:
Stored size: 769 Bytes
Contents
namespace :db_tunnel do desc "db_tunnel:on[<tunnel-host>]" task :on, [:tunnel_host] => :environment do |task, args| DbTunnel::DbSync.new(tunnel_host: args[:tunnel_host]).tunnel_on end desc "db_tunnel:off" task :off, [:tunnel_host] => :environment do |task, args| DbTunnel::DbSync.new.tunnel_off end desc "db_tunnel:check[<ip>] - check db connection with a query" task :check, [:tunnel_host] => :environment do |task, args| DbTunnel::DbSync.new(tunnel_host: args[:tunnel_host]).tunnel_check end desc "db_tunnel:clone_db[<ip>] - copy db from staging to local" task :clone_db, [:tunnel_host] => :environment do |task, args| DbTunnel::DbSync.new(tunnel_host: args[:tunnel_host]).execute(from: :tunnel_staging, to: :local) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
db_tunnel-0.1.2 | lib/tasks/db_tunnel.rake |