module Sunzi::Cli::Secrets
Attributes
env[RW]
Public Instance Methods
load_env(stage)
click to toggle source
# File lib/sunzi/cli/secrets.rb, line 7 def load_env(stage) path = File.expand_path('config/secrets.yml') @env = HashWithIndifferentAccess.new(YAML.load(File.read(path))[stage]) end