Sha256: f7069f2f21b2225b5f5090baf966a7206251d986a4467d6c04a5a8628396fe41

Contents?: true

Size: 495 Bytes

Versions: 8

Compression:

Stored size: 495 Bytes

Contents

require 'fitting/skip/api'
require 'fitting/skip/action'

module Fitting
  class Skip
    def self.all
      yaml = YAML.safe_load(File.read('.fitting.yml'))
      {
        apis: Fitting::Skip::API.all(yaml['SkipValidation']),
        actions: Fitting::Skip::Action.all(yaml['SkipValidation'])
      }
    end

    def self.find(skips, log)
      api = Fitting::Skip::API.find(skips[:apis], log)
      return api if api

      Fitting::Skip::Action.find(skips[:actions], log)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fitting-4.2.1 lib/fitting/skip.rb
fitting-4.2.0 lib/fitting/skip.rb
fitting-4.1.0 lib/fitting/skip.rb
fitting-4.0.4 lib/fitting/skip.rb
fitting-4.0.3 lib/fitting/skip.rb
fitting-4.0.2 lib/fitting/skip.rb
fitting-4.0.1 lib/fitting/skip.rb
fitting-4.0.0 lib/fitting/skip.rb