Sha256: c245bc6405412a236d8841fc0c75baa5a1e45896f03794479a92e082e73ebf46

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 Bytes

Contents

require 'roo_on_rails/checks/base'

module RooOnRails
  module Checks
    # Base class for checks that are applicable per-environment.
    # The `env` passed to the initializer becomes part of the check signature.
    class EnvSpecific < Base
      attr_reader :env

      def initialize(**options)
        super(options)
        @env = @options[:env]
      end
      
      def signature
        super + [@env]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
roo_on_rails-1.3.1 lib/roo_on_rails/checks/env_specific.rb
roo_on_rails-1.3.0 lib/roo_on_rails/checks/env_specific.rb
roo_on_rails-1.2.0 lib/roo_on_rails/checks/env_specific.rb
roo_on_rails-1.1.0 lib/roo_on_rails/checks/env_specific.rb