Class: Eh::Settings::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/eh/settings.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


25
26
27
# File 'lib/eh/settings.rb', line 25

def current?
  @json["current"]
end

#deploy_passwordObject



17
18
19
# File 'lib/eh/settings.rb', line 17

def deploy_password
  @json["deploy_password"]
end

#deploy_usernameObject



13
14
15
# File 'lib/eh/settings.rb', line 13

def deploy_username
  @json["deploy_username"]
end

#dirObject



21
22
23
# File 'lib/eh/settings.rb', line 21

def dir
  @json["dir"]
end

#urlObject



9
10
11
# File 'lib/eh/settings.rb', line 9

def url
  @json["url"]
end