Class: DexSync::Config
- Inherits:
-
Object
- Object
- DexSync::Config
- Defined in:
- lib/dex_sync.rb
Instance Method Summary collapse
- #clusters ⇒ Object
- #dex ⇒ Object
- #gh_session ⇒ Object
- #github ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #namespaces ⇒ Object
- #user_session ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
10 11 12 |
# File 'lib/dex_sync.rb', line 10 def initialize @configuration = YAML.safe_load(File.read(File.('~/dex_sync.yaml'))) end |
Instance Method Details
#clusters ⇒ Object
26 27 28 |
# File 'lib/dex_sync.rb', line 26 def clusters @configuration.fetch('CLUSTERS') end |
#dex ⇒ Object
14 15 16 |
# File 'lib/dex_sync.rb', line 14 def dex @configuration.fetch('DEX') end |
#gh_session ⇒ Object
34 35 36 |
# File 'lib/dex_sync.rb', line 34 def gh_session @configuration.fetch('GH_SESSION') end |
#github ⇒ Object
18 19 20 |
# File 'lib/dex_sync.rb', line 18 def github @configuration.fetch('GITHUB') end |
#namespaces ⇒ Object
22 23 24 |
# File 'lib/dex_sync.rb', line 22 def namespaces @configuration.fetch('NAMESPACES') end |
#user_session ⇒ Object
30 31 32 |
# File 'lib/dex_sync.rb', line 30 def user_session @configuration.fetch('USER_SESSION') end |