Sha256: 2d176a62bbacb35fa645eaeb6eda0daf882a309e3417d8f98fc138e89850749e
Contents?: true
Size: 426 Bytes
Versions: 3
Compression:
Stored size: 426 Bytes
Contents
#!/usr/bin/env ruby require 'builder/builder.rb' module Prick::SubCommand def self.teardown(database, username) conn = PgConn.new # Superuser connection if conn.rdbms.exist? database conn.rdbms.drop database end if conn.role.exist? username conn.role.drop username, cascade: true end builder = Prick::Build::Builder.new(conn, "schema") # TODO Run builder teardown scrips end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
prick-0.20.4 | lib/subcommand/prick-teardown.rb |
prick-0.20.2 | lib/subcommand/prick-teardown.rb |
prick-0.20.1 | lib/subcommand/prick-teardown.rb |