Sha256: d0805509fe59ac6d8b63657aa651ce2b5dfa7fc5643cc0002cc2cea6fba06987

Contents?: true

Size: 303 Bytes

Versions: 8

Compression:

Stored size: 303 Bytes

Contents

require 'active_support/hash_with_indifferent_access'

module Sunzi
  module Cli::Secrets
    extend self

    attr_accessor :env

    def load_env(stage)
      path = File.expand_path('config/secrets.yml')
      @env = HashWithIndifferentAccess.new(YAML.load(File.read(path))[stage])
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sunzi-rails-0.2.6 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.5 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.4 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.3 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.2 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.1 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.0 lib/sunzi/cli/secrets.rb
sunzi-rails-0.1.0 lib/sunzi/cli/secrets.rb