Sha256: ca7a5e5c6dd71bec5645f9188650622aafbe3960035a707aff9ab290ede28564

Contents?: true

Size: 755 Bytes

Versions: 7

Compression:

Stored size: 755 Bytes

Contents

require 'r10k'
require 'r10k/config'
require 'r10k/synchro/git'
require 'yaml'

class R10K::Deployment
  # Model a full installation of module directories and modules.

  class << self
    def instance
      @myself ||= self.new
    end

    def config
      instance.config
    end

    def collection
      instance.collection
    end
  end

  def initialize
    @config = R10K::Config.new
  end

  def config
    @config
  end

  # Load up all module roots
  #
  # @return [Array<R10K::Root>]
  def environments
    collection.to_a
  end

  def collection
    @config.load_config unless @config.loaded?
    @collection ||= R10K::Deployment::EnvironmentCollection.new(@config)
    @collection
  end
end

require 'r10k/deployment/environment_collection'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
r10k-0.0.9 lib/r10k/deployment.rb
r10k-0.0.8 lib/r10k/deployment.rb
r10k-0.0.7 lib/r10k/deployment.rb
r10k-0.0.6 lib/r10k/deployment.rb
r10k-0.0.5 lib/r10k/deployment.rb
r10k-0.0.4 lib/r10k/deployment.rb
r10k-0.0.3 lib/r10k/deployment.rb