lib/dim.rb in dim-1.2.6 vs lib/dim.rb in dim-1.2.7
- old
+ new
@@ -72,10 +72,12 @@
register(name,false,&block)
end
# Given a list of services, check to see if they are available, returning true or false.
def verify_dependencies(*names)
- names.all? { |name| service_block(name) }
+ names.all? do |name|
+ respond_to?(name) || service_block(name)
+ end
rescue Dim::MissingServiceError
false
end
# Lookup a service from ENV variables, or use a default if given; fall back to searching the container and its parents for a default value