Module: Fog::OpenStack::Orchestration::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



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

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

#stackObject



63
64
65
# File 'lib/fog/openstack/orchestration.rb', line 63

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