Module: Fog::Orchestration::OpenStack::Reflectable

Included in:
Event, Resource
Defined in:
lib/fog/openstack/orchestration.rb

Constant Summary collapse

REFLECTION_REGEX =
/\/stacks\/(\w+)\/([\w|-]+)\/resources\/(\w+)/

Instance Method Summary collapse

Instance Method Details

#resourceObject



54
55
56
# File 'lib/fog/openstack/orchestration.rb', line 54

def resource
  @resource ||= service.resources.get(r[3], stack)
end

#stackObject



58
59
60
# File 'lib/fog/openstack/orchestration.rb', line 58

def stack
  @stack ||= service.stacks.get(r[1], r[2])
end