Method: Azuki::Auth.write_credentials
- Defined in:
- lib/azuki/auth.rb
.write_credentials ⇒ Object
161 162 163 164 165 166 167 168 169 170 |
# File 'lib/azuki/auth.rb', line 161 def write_credentials FileUtils.mkdir_p(File.dirname(netrc_path)) FileUtils.touch(netrc_path) unless running_on_windows? FileUtils.chmod(0600, netrc_path) end netrc["api.#{host}"] = self.credentials netrc["code.#{host}"] = self.credentials netrc.save end |