Class: MintPress::Console::Instances

Inherits:
Object
  • Object
show all
Includes:
MintLogger
Defined in:
src/mintpress-console/lib/mintpress-console/instances.rb

Properties (Read/Write)

Properties (Read Only)

Constant Summary collapse

INTERNAL_INSTANCE_STATES =
[ 'preparing', 'ready' ]

Constants included from MintLogger

MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MintLogger::Utils::Common

#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send

Constructor Details

#initialize(client) ⇒ Instances

Returns a new instance of Instances.

Instance Attribute Details

#allObject (readonly)

Returns the value of attribute all.

Instance Method Details

#exists?(uuid) ⇒ Boolean

Returns:

  • (Boolean)

#get(uuid) ⇒ Object

#get_instance(provider:, environment:, item:) ⇒ Object

#get_instance_details(uuid) ⇒ Object

#launch(provider:, environment:, item:, description: '', properties: { "properties" => {}}, action: "provision", wait: false, retry_limit: 12, retry_sleep: 10, max_wait_time: 18800) ⇒ Object

#launch_exists?(*args, **kwargs) ⇒ Boolean

Returns:

  • (Boolean)

#list(verbose: true, fetch_consoles: false) ⇒ Object

#list_by_environment(environment, verbose: true) ⇒ Object

#pretty_print(instances = nil) ⇒ Object

#refreshObject

#trigger_action(uuid:, action:, wait: false, max_wait_time: 18800, ignore_initial_state: false) ⇒ Object

#wait_for_completion(uuid:, action:, max_wait_time: 18800) ⇒ Object