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



61
62
63
# File 'lib/fog/openstack/orchestration.rb', line 61

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

#stackObject



65
66
67
# File 'lib/fog/openstack/orchestration.rb', line 65

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