Class: OodCore::InvalidCluster
- Defined in:
- lib/ood_core/invalid_cluster.rb
Overview
A special case of an OodCore::Cluster where something went awry in the creation and it's invalid for some reason. Users should only be able to rely on id and metadata.error_msg. All *allow? related functions false, meaning nothing is allowed.
Instance Attribute Summary
Attributes inherited from Cluster
#acls_config, #errors, #id, #job_config, #login_config, #metadata_config
Instance Method Summary collapse
-
#allow? ⇒ Boolean
This cluster is not allowed to be used.
-
#custom_allow?(_) ⇒ Boolean
Custom features are not allowed.
-
#job_allow? ⇒ Boolean
Jobs are not allowed.
-
#login_allow? ⇒ Boolean
Jobs are not allowed.
-
#valid? ⇒ Boolean
This cluster is never valid.
Methods inherited from Cluster
#==, #acls, #batch_connect_config, #batch_connect_ssh_allow?, #batch_connect_template, #custom_config, #initialize, #job_adapter, #login, #metadata, #to_h, #to_sym
Constructor Details
This class inherits a constructor from OodCore::Cluster
Instance Method Details
#allow? ⇒ Boolean
This cluster is not allowed to be used
27 28 29 |
# File 'lib/ood_core/invalid_cluster.rb', line 27 def allow? false end |
#custom_allow?(_) ⇒ Boolean
Custom features are not allowed
21 22 23 |
# File 'lib/ood_core/invalid_cluster.rb', line 21 def custom_allow?(_) false end |
#job_allow? ⇒ Boolean
Jobs are not allowed
15 16 17 |
# File 'lib/ood_core/invalid_cluster.rb', line 15 def job_allow? false end |
#login_allow? ⇒ Boolean
Jobs are not allowed
9 10 11 |
# File 'lib/ood_core/invalid_cluster.rb', line 9 def login_allow? false end |
#valid? ⇒ Boolean
This cluster is never valid
33 34 35 |
# File 'lib/ood_core/invalid_cluster.rb', line 33 def valid? return false end |