class Envdocs::Sampler
Retrieves keys for an environment from a sample template
Attributes
curr_env[R]
env_keys[R]
filename[R]
template[R]
Public Class Methods
new(filename, curr_env)
click to toggle source
@param [String] filename @param [String] curr_env
# File lib/envdocs.rb, line 43 def initialize(filename, curr_env) @filename = filename @curr_env = curr_env @template = retrieve_keys_template(filename) @env_keys = retrieve_keys_for_env_from_template(curr_env) end
Private Instance Methods
retrieve_keys_for_env_from_template(curr_env)
click to toggle source
retrieve_keys_template(filename)
click to toggle source
@param [String] filename
# File lib/envdocs.rb, line 53 def retrieve_keys_template(filename) YAML.load(File.read(Rails.root.join('config', filename))) end