class Terraspace::Tester::Finder
Public Instance Methods
find_with(options)
click to toggle source
# File lib/terraspace/tester/finder.rb, line 3 def find_with(options) result = if options.key?(:framework) find_with_framework(options[:framework]) else raise "Must provide framework_name option." end return unless result raw = Hash[*result] # convert result to Hash instead of an Array Meta.new(raw) end
find_with_framework(framework)
click to toggle source
# File lib/terraspace/tester/finder.rb, line 15 def find_with_framework(framework) meta.find do |framework_name, data| framework_name == framework end end
meta()
click to toggle source
# File lib/terraspace/tester/finder.rb, line 21 def meta Terraspace::Tester.meta end