Class: Apperol::Creds
- Inherits:
-
Object
- Object
- Apperol::Creds
- Defined in:
- lib/apperol/creds.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.github ⇒ Object
8 9 10 |
# File 'lib/apperol/creds.rb', line 8 def github instance.github end |
.heroku ⇒ Object
4 5 6 |
# File 'lib/apperol/creds.rb', line 4 def heroku instance.heroku end |
.instance ⇒ Object
12 13 14 |
# File 'lib/apperol/creds.rb', line 12 def instance @instance ||= new end |
Instance Method Details
#github ⇒ Object
21 22 23 |
# File 'lib/apperol/creds.rb', line 21 def github netrc["api.github.com"] end |
#heroku ⇒ Object
17 18 19 |
# File 'lib/apperol/creds.rb', line 17 def heroku netrc["api.heroku.com"] end |
#netrc ⇒ Object
25 26 27 |
# File 'lib/apperol/creds.rb', line 25 def netrc @netrc ||= Netrc.read end |