Class: Eh::Settings::Repository
- Inherits:
-
Object
- Object
- Eh::Settings::Repository
- Defined in:
- lib/eh/settings.rb
Instance Method Summary collapse
- #current? ⇒ Boolean
- #deploy_password ⇒ Object
- #deploy_username ⇒ Object
- #dir ⇒ Object
-
#initialize(json) ⇒ Repository
constructor
A new instance of Repository.
- #url ⇒ Object
Constructor Details
#initialize(json) ⇒ Repository
Returns a new instance of Repository.
6 7 8 |
# File 'lib/eh/settings.rb', line 6 def initialize(json) @json = json end |
Instance Method Details
#current? ⇒ Boolean
26 27 28 |
# File 'lib/eh/settings.rb', line 26 def current? @json['current'] end |
#deploy_password ⇒ Object
18 19 20 |
# File 'lib/eh/settings.rb', line 18 def deploy_password @json['deploy_password'] end |
#deploy_username ⇒ Object
14 15 16 |
# File 'lib/eh/settings.rb', line 14 def deploy_username @json['deploy_username'] end |
#dir ⇒ Object
22 23 24 |
# File 'lib/eh/settings.rb', line 22 def dir @json['dir'] end |
#url ⇒ Object
10 11 12 |
# File 'lib/eh/settings.rb', line 10 def url @json['url'] end |