Class: Avm::Launcher::Context::InstanceManager

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/launcher/context/instance_manager.rb,
lib/avm/launcher/context/instance_manager/cached_instance.rb,
lib/avm/launcher/context/instance_manager/cached_instances.rb

Defined Under Namespace

Classes: CachedInstance, CachedInstances

Instance Method Summary collapse

Instance Method Details

#pending_instancesObject



23
24
25
# File 'lib/avm/launcher/context/instance_manager.rb', line 23

def pending_instances
  instances.select { |instance| pending_instance?(instance) }
end

#publish_state_set(instance, stereotype_name, check_status) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/avm/launcher/context/instance_manager.rb', line 15

def publish_state_set(instance, stereotype_name, check_status)
  data = cached_instances_file_content_uncached
  data[instance.logical] ||= {}
  data[instance.logical][:publish_state] ||= {}
  data[instance.logical][:publish_state][stereotype_name] = check_status
  write_cache_file(data)
end