Module: Cistern
- Extended by:
- WaitFor
- Defined in:
- lib/cistern.rb,
lib/cistern/mock.rb,
lib/cistern/timeout.rb,
lib/cistern/version.rb,
lib/cistern/wait_for.rb
Defined Under Namespace
Modules: Attributes, Client, Collection, Coverage, Data, Formatter, Model, Request, WaitFor
Classes: Hash, Mock, Service, Singular, String
Constant Summary
collapse
- Error =
Class.new(StandardError)
- Timeout =
Class.new(Error)
- VERSION =
"2.1.0"
Class Method Summary
collapse
Methods included from WaitFor
poll_interval, poll_interval=, timeout, timeout=, timeout_error, timeout_error=, wait_for, wait_for, wait_for!, wait_for!
Class Method Details
.deprecation(message, source = caller[1]) ⇒ Object
44
45
46
47
48
|
# File 'lib/cistern.rb', line 44
def self.deprecation(message, source=caller[1])
if deprecation_warnings?
STDERR.puts("#{message}. (#{source})")
end
end
|
.deprecation_warnings=(status) ⇒ Object
40
41
42
|
# File 'lib/cistern.rb', line 40
def self.deprecation_warnings=(status)
@deprecation_warnings = status
end
|
.deprecation_warnings? ⇒ Boolean
36
37
38
|
# File 'lib/cistern.rb', line 36
def self.deprecation_warnings?
@deprecation_warnings.nil? ? true : !!@deprecation_warnings
end
|
32
33
34
|
# File 'lib/cistern.rb', line 32
def self.formatter
@formatter ||= Cistern::Formatter.default
end
|
30
|
# File 'lib/cistern.rb', line 30
def self.formatter=(formatter); @formatter = formatter; end
|