Class: Dotenvious::EnvAppender

Inherits:
Object
  • Object
show all
Defined in:
lib/dotenvious/env_appender.rb

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ EnvAppender

Returns a new instance of EnvAppender.



3
4
5
# File 'lib/dotenvious/env_appender.rb', line 3

def initialize(filename)
  @filename = filename
end

Instance Method Details

#append(key) ⇒ Object



7
8
9
10
# File 'lib/dotenvious/env_appender.rb', line 7

def append(key)
  env.write("#{key}=#{ENV_EXAMPLE[key]}\n")
  env.close
end