class OodCore::InvalidCluster
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.
Public Instance Methods
allow?()
click to toggle source
This cluster is not allowed to be used @return false
# File lib/ood_core/invalid_cluster.rb, line 27 def allow? false end
custom_allow?(_)
click to toggle source
Custom features are not allowed @return false
# File lib/ood_core/invalid_cluster.rb, line 21 def custom_allow?(_) false end
job_allow?()
click to toggle source
Jobs are not allowed @return false
# File lib/ood_core/invalid_cluster.rb, line 15 def job_allow? false end
login_allow?()
click to toggle source
Jobs are not allowed @return false
# File lib/ood_core/invalid_cluster.rb, line 9 def login_allow? false end
valid?()
click to toggle source
This cluster is never valid @return false
# File lib/ood_core/invalid_cluster.rb, line 33 def valid? return false end