Sha256: e02d60a188e047663cd763b40f41b67de29f6d82089cef2a1ddac7d8513133d6

Contents?: true

Size: 480 Bytes

Versions: 5

Compression:

Stored size: 480 Bytes

Contents

require 'r10k/source'
require 'r10k-mocks/mock_env'

class R10K::Source::Mock < R10K::Source::Base
  R10K::Source.register(:mock, self)

  def environments
    corrected_environment_names = @options[:environments].map do |env|
      R10K::Environment::Name.new(env, :prefix => @prefix, :invalid => 'correct_and_warn')
    end
    corrected_environment_names.map { |env| R10K::Environment::Mock.new(env.name, @basedir, env.dirname, { overrides: @options[:overrides] }) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
r10k-3.11.0 spec/r10k-mocks/mock_source.rb
r10k-3.10.0 spec/r10k-mocks/mock_source.rb
r10k-3.9.3 spec/r10k-mocks/mock_source.rb
r10k-3.9.2 spec/r10k-mocks/mock_source.rb
r10k-3.9.1 spec/r10k-mocks/mock_source.rb