Sha256: e9dbd6a1a39c455008bbe7a2e0ffcb655cd5d611d5bd8094083f38f5ec5ab1ea
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
#!/usr/bin/env ruby require 'shellopts' require 'pg_meta' include ShellOpts SPEC = %( -f,format=FORMAT:yaml,marshal,dump Control format of output. FORMAT can be one of 'yaml', 'marshal' or the human-readable 'dump' format (the default) -- DATABASE ) opts, args = ShellOpts.process(SPEC, ARGV, version: PgMeta::VERSION, exception: false) database = args.expect(1) conn = PgConn.new(database) meta = PgMeta.new(conn) case opts.format when "yaml"; puts meta.to_yaml when "marshal"; puts meta.to_marshal else meta.dump end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pg_meta-0.1.2 | exe/pg_meta |
pg_meta-0.1.1 | exe/pg_meta |