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

Included in:
Event, Resource
Defined in:
lib/fog/orchestration/openstack.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/orchestration/openstack.rb', line 61

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

#stackObject



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

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