Class: Reschedule::Configuration
- Inherits:
-
Object
- Object
- Reschedule::Configuration
- Defined in:
- lib/reschedule/configuration.rb
Instance Attribute Summary collapse
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#kubernetes_api_ca_file ⇒ Object
Returns the value of attribute kubernetes_api_ca_file.
-
#kubernetes_api_client_cert ⇒ Object
Returns the value of attribute kubernetes_api_client_cert.
-
#kubernetes_api_client_key ⇒ Object
Returns the value of attribute kubernetes_api_client_key.
-
#kubernetes_api_password ⇒ Object
Returns the value of attribute kubernetes_api_password.
-
#kubernetes_api_url ⇒ Object
Returns the value of attribute kubernetes_api_url.
-
#kubernetes_api_username ⇒ Object
Returns the value of attribute kubernetes_api_username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_run ⇒ Object
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_file ⇒ Object
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_cert ⇒ Object
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_key ⇒ Object
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_password ⇒ Object
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_url ⇒ Object
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_username ⇒ Object
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 |