class SSLocal::State

Attributes

environment[R]

Public Class Methods

new(environment) click to toggle source
# File lib/sslocal/state.rb, line 7
def initialize(environment)
  @environment = environment
end

Public Instance Methods

cert_path() click to toggle source
# File lib/sslocal/state.rb, line 11
def cert_path
  File.expand_path("config/certificates/#{environment}.crt")
end
enabled?() click to toggle source
# File lib/sslocal/state.rb, line 15
def enabled?
  File.exist?(key_path) && File.exist?(cert_path)
end
key_path() click to toggle source
# File lib/sslocal/state.rb, line 19
def key_path
  File.expand_path("config/certificates/#{environment}.key")
end