Sha256: e2811658e39d7e5caf9e42d83d4cfc6cd076bf02858e0b9a959b75b29ae46e16

Contents?: true

Size: 209 Bytes

Versions: 6

Compression:

Stored size: 209 Bytes

Contents

LuxCli.class_eval do
  desc :dbconsole, 'Get PSQL console for current database'
  def dbconsole
    require './config/environment'

    system "psql '%s'" % ENV.fetch('DB_URL') { Lux.secrets.db_url }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lux-fw-0.5.37 ./bin/cli/dbconsole.rb
lux-fw-0.5.36 ./bin/cli/dbconsole.rb
lux-fw-0.5.35 ./bin/cli/dbconsole.rb
lux-fw-0.5.34 ./bin/cli/dbconsole.rb
lux-fw-0.5.33 ./bin/cli/dbconsole.rb
lux-fw-0.5.32 ./bin/cli/dbconsole.rb