Class: Webhookdb::Postgres::Maintenance::Repack

Inherits:
Command
  • Object
show all
Defined in:
lib/webhookdb/postgres/maintenance.rb

Instance Attribute Summary

Attributes inherited from Base

#service_integration

Instance Method Summary collapse

Methods inherited from Command

#command_strings, #create_extension_command_list, #docker?, #docker_preamble, #psql_conn_params, #shelex

Methods inherited from Base

#conn_params, #debug?, #initialize

Constructor Details

This class inherits a constructor from Webhookdb::Postgres::Maintenance::Base

Instance Method Details

#command_listObject



113
114
115
116
117
118
119
120
121
122
123
# File 'lib/webhookdb/postgres/maintenance.rb', line 113

def command_list
  c = []
  c += self.docker_preamble if self.docker?
  c << "pg_repack"
  c += self.psql_conn_params
  c += ["--table", self.conn_params[:table]]
  c << "--no-superuser-check"
  c << "--dry-run"
  c += ["--echo", "--elevel=DEBUG"] if self.debug?
  return c
end

#docker_imageObject



111
# File 'lib/webhookdb/postgres/maintenance.rb', line 111

def docker_image = Webhookdb::Postgres::Maintenance.pg_repack_image

#extensionObject



109
# File 'lib/webhookdb/postgres/maintenance.rb', line 109

def extension = "pg_repack"