lib/evertils/config.rb in evertils-1.0.8 vs lib/evertils/config.rb in evertils-1.0.9
- old
+ new
@@ -48,10 +48,13 @@
def populate_config
file = File.expand_path("~/.evertils/config.yml")
fmt = Evertils::Helper.load('Formatting')
@yml = fmt.symbolize(::YAML.load_file(file))
+
+ set_evertils_token
+
self
end
# Get a specific value from the config file data
# Params:
@@ -119,9 +122,13 @@
result
}
end
private
+
+ def set_evertils_token
+ ENV['EVERTILS_TOKEN'] = @yml[:token]
+ end
# Check if configuration data exists
def valid_config?
!@yml.nil?
end
\ No newline at end of file