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.



6
7
8
# File 'lib/eh/settings.rb', line 6

def initialize(json)
  @json = json
end

Instance Method Details

#current?Boolean

Returns:

  • (Boolean)


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

def current?
  @json['current']
end

#deploy_passwordObject



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

def deploy_password
  @json['deploy_password']
end

#deploy_usernameObject



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

def deploy_username
  @json['deploy_username']
end

#dirObject



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

def dir
  @json['dir']
end

#urlObject



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

def url
  @json['url']
end