Module: FakeSSL

Defined in:
lib/fakessl/fakessl.rb

Defined Under Namespace

Classes: Cert, Server

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.certObject

Returns the value of attribute cert.



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

def cert
  @cert
end

.domainObject

Returns the value of attribute domain.



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

def domain
  @domain
end

.keyObject

Returns the value of attribute key.



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

def key
  @key
end

Class Method Details

.cert_path(fcert, fkey) ⇒ Object



12
13
14
15
16
# File 'lib/fakessl/fakessl.rb', line 12

def FakeSSL.cert_path(fcert, fkey)
  FakeSSL.cert = fcert
  FakeSSL.key = fkey
  FakeSSL.domain = fcert.chomp(".cert")
end