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


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

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

#stackObject


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

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