Sha256: 29aeb8d8f3cf0d0c2defe9858b07cdeb22a905b3374c04b1895e71402667a26e

Contents?: true

Size: 376 Bytes

Versions: 3

Compression:

Stored size: 376 Bytes

Contents

require 'capistrano/env/config'

module Capistrano
  module Env
    def self.use(&block)
      block.call(config)
    end

    def self.envs
      config.envs
    end

    def self.to_s
      config.capenv_content
    end

    def self.filename
      config.capenv_file
    end

    private

    def self.config
      @config ||= Capistrano::Env::Config.new
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capistrano-env-0.3.2 lib/capistrano/env.rb
capistrano-env-0.3.1 lib/capistrano/env.rb
capistrano-env-0.3.0 lib/capistrano/env.rb