Class: OodCore::InvalidCluster

Inherits:
Cluster
  • Object
show all
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

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

Returns:

  • (Boolean)

    false



27
28
29
# File 'lib/ood_core/invalid_cluster.rb', line 27

def allow?
  false
end

#custom_allow?(_) ⇒ Boolean

Custom features are not allowed

Returns:

  • (Boolean)

    false



21
22
23
# File 'lib/ood_core/invalid_cluster.rb', line 21

def custom_allow?(_)
  false
end

#job_allow?Boolean

Jobs are not allowed

Returns:

  • (Boolean)

    false



15
16
17
# File 'lib/ood_core/invalid_cluster.rb', line 15

def job_allow?
  false
end

#login_allow?Boolean

Jobs are not allowed

Returns:

  • (Boolean)

    false



9
10
11
# File 'lib/ood_core/invalid_cluster.rb', line 9

def 
  false
end

#valid?Boolean

This cluster is never valid

Returns:

  • (Boolean)

    false



33
34
35
# File 'lib/ood_core/invalid_cluster.rb', line 33

def valid?
  return false
end