lib/phone_gap/build/credentials.rb in phone_gap-build-0.6.2 vs lib/phone_gap/build/credentials.rb in phone_gap-build-0.7.0
- old
+ new
@@ -16,10 +16,10 @@
self
end
def load
if config_file && File.exists?(config_file)
- @config = YAML::load_file(config_file)
+ @config = YAML::load(ERB.new(File.read(config_file)).result)
@token = @config['token']
end
self
end