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

Defined Under Namespace

Modules: Commands

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#register_commands(cli) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# 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
  end
end

#templates_dirObject



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

def templates_dir
  TEMPLATES_DIR
end