Module: Caco::Postgres::ClassMethods
- Included in:
- Caco::Postgres
- Defined in:
- lib/caco/postgres.rb
Instance Method Summary collapse
- #add_shared_library(lib) ⇒ Object
- #clear_shared_library ⇒ Object
- #shared_libraries ⇒ Object
- #should_restart! ⇒ Object
- #should_restart? ⇒ Boolean
Instance Method Details
#add_shared_library(lib) ⇒ Object
4 5 6 7 8 |
# File 'lib/caco/postgres.rb', line 4 def add_shared_library(lib) @libraries ||= [] @libraries << lib true end |
#clear_shared_library ⇒ Object
15 16 17 |
# File 'lib/caco/postgres.rb', line 15 def clear_shared_library @libraries = [] end |
#shared_libraries ⇒ Object
10 11 12 13 |
# File 'lib/caco/postgres.rb', line 10 def shared_libraries @libraries ||= [] @libraries.join(", ") end |
#should_restart! ⇒ Object
19 20 21 |
# File 'lib/caco/postgres.rb', line 19 def should_restart! @should_restart = true end |
#should_restart? ⇒ Boolean
23 24 25 |
# File 'lib/caco/postgres.rb', line 23 def should_restart? @should_restart || false end |