Module: Caco::Postgres::ClassMethods

Included in:
Caco::Postgres
Defined in:
lib/caco/postgres.rb

Instance Method Summary collapse

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_libraryObject



15
16
17
# File 'lib/caco/postgres.rb', line 15

def clear_shared_library
  @libraries = []
end

#shared_librariesObject



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

Returns:

  • (Boolean)


23
24
25
# File 'lib/caco/postgres.rb', line 23

def should_restart?
  @should_restart || false
end