lib/gooddata/helpers/auth_helpers.rb in gooddata-0.6.27 vs lib/gooddata/helpers/auth_helpers.rb in gooddata-0.6.28
- old
+ new
@@ -58,10 +58,10 @@
[ENV['GD_PROJECT_TOKEN'], goodfile[:auth_token], goodfile[:token]].find { |x| !x.nil? && !x.empty? }
end
# Writes credentials
def write_credentials(credentials, credentials_file_path = credentials_file)
- File.open(credentials_file_path, 'w', 0600) do |f|
+ File.open(credentials_file_path, 'w', 0o600) do |f|
f.puts JSON.pretty_generate(credentials)
end
credentials
end