Class: Reschedule::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/reschedule/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



6
7
8
9
10
11
12
13
14
# File 'lib/reschedule/configuration.rb', line 6

def initialize
  self.dry_run = ENV['RESCHEDULE_DRY_RUN'] == '1'
  self.kubernetes_api_url = ENV['KUBERNETES_API_URL']
  self.kubernetes_api_username = ENV['KUBERNETES_API_USERNAME']
  self.kubernetes_api_password = ENV['KUBERNETES_API_PASSWORD']
  self.kubernetes_api_client_key = ENV['KUBERNETES_API_CLIENT_KEY']
  self.kubernetes_api_client_cert = ENV['KUBERNETES_API_CLIENT_CERT']
  self.kubernetes_api_ca_file = ENV['KUBERNETES_API_CA_FILE']
end

Instance Attribute Details

#dry_runObject

Returns the value of attribute dry_run.



3
4
5
# File 'lib/reschedule/configuration.rb', line 3

def dry_run
  @dry_run
end

#kubernetes_api_ca_fileObject

Returns the value of attribute kubernetes_api_ca_file.



3
4
5
# File 'lib/reschedule/configuration.rb', line 3

def kubernetes_api_ca_file
  @kubernetes_api_ca_file
end

#kubernetes_api_client_certObject

Returns the value of attribute kubernetes_api_client_cert.



3
4
5
# File 'lib/reschedule/configuration.rb', line 3

def kubernetes_api_client_cert
  @kubernetes_api_client_cert
end

#kubernetes_api_client_keyObject

Returns the value of attribute kubernetes_api_client_key.



3
4
5
# File 'lib/reschedule/configuration.rb', line 3

def kubernetes_api_client_key
  @kubernetes_api_client_key
end

#kubernetes_api_passwordObject

Returns the value of attribute kubernetes_api_password.



3
4
5
# File 'lib/reschedule/configuration.rb', line 3

def kubernetes_api_password
  @kubernetes_api_password
end

#kubernetes_api_urlObject

Returns the value of attribute kubernetes_api_url.



3
4
5
# File 'lib/reschedule/configuration.rb', line 3

def kubernetes_api_url
  @kubernetes_api_url
end

#kubernetes_api_usernameObject

Returns the value of attribute kubernetes_api_username.



3
4
5
# File 'lib/reschedule/configuration.rb', line 3

def kubernetes_api_username
  @kubernetes_api_username
end