Sha256: 9784e19083c5c8dcf17832194a627906a1ea93d829e84ffc19deb8ba8e5b702f

Contents?: true

Size: 443 Bytes

Versions: 17

Compression:

Stored size: 443 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) }
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
r10k-3.9.0 spec/r10k-mocks/mock_source.rb
r10k-3.8.0 spec/r10k-mocks/mock_source.rb
r10k-3.7.0 spec/r10k-mocks/mock_source.rb
r10k-3.6.0 spec/r10k-mocks/mock_source.rb
r10k-3.5.2 spec/r10k-mocks/mock_source.rb
r10k-3.5.1 spec/r10k-mocks/mock_source.rb
r10k-3.5.0 spec/r10k-mocks/mock_source.rb
r10k-3.4.1 spec/r10k-mocks/mock_source.rb
r10k-3.4.0 spec/r10k-mocks/mock_source.rb
r10k-3.3.3 spec/r10k-mocks/mock_source.rb
r10k-3.2.3 spec/r10k-mocks/mock_source.rb
r10k-3.3.2 spec/r10k-mocks/mock_source.rb
r10k-3.3.1 spec/r10k-mocks/mock_source.rb
r10k-3.2.1 spec/r10k-mocks/mock_source.rb
r10k-3.3.0 spec/r10k-mocks/mock_source.rb
r10k-3.2.0 spec/r10k-mocks/mock_source.rb
r10k-3.1.1 spec/r10k-mocks/mock_source.rb