Sha256: 672da9869867103be46c7490cb681b705bc13edad9a5f00d335cfc26af393de7

Contents?: true

Size: 248 Bytes

Versions: 16

Compression:

Stored size: 248 Bytes

Contents

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

16 entries across 16 versions & 1 rubygems

Version Path
sunzi-rails-0.2.21 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.20 lib/sunzi/cli/secrets.rb
sunzi-rails-0.3.0 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.19 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.18 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.17 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.16 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.15 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.14 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.13 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.12 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.11 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.10 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.9 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.8 lib/sunzi/cli/secrets.rb
sunzi-rails-0.2.7 lib/sunzi/cli/secrets.rb