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.
5 6 7 |
# File 'lib/eh/settings.rb', line 5 def initialize(json) @json = json end |
Instance Method Details
#current? ⇒ Boolean
25 26 27 |
# File 'lib/eh/settings.rb', line 25 def current? @json["current"] end |
#deploy_password ⇒ Object
17 18 19 |
# File 'lib/eh/settings.rb', line 17 def deploy_password @json["deploy_password"] end |
#deploy_username ⇒ Object
13 14 15 |
# File 'lib/eh/settings.rb', line 13 def deploy_username @json["deploy_username"] end |
#dir ⇒ Object
21 22 23 |
# File 'lib/eh/settings.rb', line 21 def dir @json["dir"] end |
#url ⇒ Object
9 10 11 |
# File 'lib/eh/settings.rb', line 9 def url @json["url"] end |