Module: Mimas::Plugins::PostgreSQL

Extended by:
PostgreSQL
Included in:
PostgreSQL
Defined in:
lib/mimas/plugins/postgresql.rb,
lib/mimas/plugins/postgresql/version.rb,
lib/mimas/plugins/postgresql/commands/setup.rb,
lib/mimas/plugins/postgresql/commands/console.rb,
lib/mimas/plugins/postgresql/commands/install.rb,
lib/mimas/plugins/postgresql/commands/configure.rb,
lib/mimas/plugins/postgresql/commands/create_db.rb,
lib/mimas/plugins/postgresql/commands/create_role.rb,
lib/mimas/plugins/postgresql/commands/prepare_backups.rb

Defined Under Namespace

Modules: Commands

Constant Summary collapse

TEMPLATES_DIR =
Pathname.new(__dir__).join("templates")
VERSION =
"0.2.0"

Instance Method Summary collapse

Instance Method Details

#register_commands(cli) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/mimas/plugins/postgresql.rb', line 6

def register_commands(cli)
  cli.register "postgresql" do |pg|
    pg.register "install",          Commands::Install
    pg.register "console",          Commands::Console
    pg.register "configure",        Commands::Configure
    pg.register "setup",            Commands::Setup
    pg.register "create_db",        Commands::CreateDB
    pg.register "create_role",      Commands::CreateRole
    pg.register "prepare_backups",  Commands::PrepareBackups
  end
end

#templates_dirObject



19
20
21
# File 'lib/mimas/plugins/postgresql.rb', line 19

def templates_dir
  TEMPLATES_DIR
end