Module: Fog::Rackspace::Orchestration::Reflectable

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

Overview

Redundant / Redirect requests: request :adopt_stack => :create_stack request :find_stack => :show_stack_details request :find_stack_events => :list_stack_events request :find_stack_resources => :list_resources

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#resourceObject



72
73
74
# File 'lib/fog/rackspace/orchestration.rb', line 72

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

#stackObject



76
77
78
# File 'lib/fog/rackspace/orchestration.rb', line 76

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