Sha256: 2a1d8cd38b628be18cf39f2c61e2762ea6d8120cb665fc6f640be5dd111368aa
Contents?: true
Size: 447 Bytes
Versions: 8
Compression:
Stored size: 447 Bytes
Contents
module Fezzik def self.env(key, value, options={}) options = { :hosts => Array(domain).map { |domain| domain.gsub(/^.*@/, "") } # strip user off the front }.merge(options) options[:hosts] = Array(options[:hosts]) @environments ||= Hash.new { |h, k| h[k] = {} } options[:hosts].each { |host| @environments[host][key] = value } end def self.environments @environments ||= Hash.new { |h, k| h[k] = {} } end end
Version data entries
8 entries across 8 versions & 1 rubygems