Module: Caco::Postgres
- Extended by:
- ClassMethods
- Defined in:
- lib/caco/postgres.rb,
lib/caco/postgres/sql.rb,
lib/caco/postgres/shell.rb,
lib/caco/postgres/install.rb,
lib/caco/postgres/conf_get.rb,
lib/caco/postgres/conf_set.rb,
lib/caco/postgres/user_create.rb,
lib/caco/postgres/build_augeas.rb,
lib/caco/postgres/database_create.rb,
lib/caco/postgres/extension_create.rb,
lib/caco/postgres/user_change_password.rb
Defined Under Namespace
Modules: ClassMethods Classes: ConfGet, ConfSet, DatabaseCreate, ExtensionCreate, HbaSet, Install, Shell, Sql, UserChangePassword, UserCreate
Class Method Summary collapse
Methods included from ClassMethods
add_shared_library, clear_shared_library, shared_libraries, should_restart!, should_restart?
Class Method Details
.BuildAugeas ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/caco/postgres/build_augeas.rb', line 2 def self.BuildAugeas task = ->((ctx, ), _) do augeas_path = ctx[:augeas_path] ? ctx[:augeas_path] : "/" ctx[:aug] = aug = Augeas::open(augeas_path, nil, Augeas::NO_LOAD) aug.clear_transforms aug.transform(:lens => "Postgresql.lns", :incl => "/postgresql.conf") aug.load return Trailblazer::Activity::Right, [ctx, ] end # new API { task: task, id: "build_augeas" } end |