lib/fulmar/domain/service/configuration_service.rb in fulmar-1.2.0 vs lib/fulmar/domain/service/configuration_service.rb in fulmar-1.2.1
- old
+ new
@@ -66,13 +66,13 @@
fail 'Target is invalid' if configuration[:environments][@environment][@target].nil?
true
end
def feature?(feature)
- return configuration[:features][feature] unless configuration[:features][feature].nil?
+ return configuration[:features].include? feature.to_s unless configuration[:features].nil?
case feature
when :database
- configuration[:features][:database] = any? { |data| data[:type] == 'maria' }
+ any? { |data| data[:type] == 'maria' }
else
false
end
end