Class: CPEE::ModelManagement::InstanceGet
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::ModelManagement::InstanceGet
- Defined in:
- lib/cpee-model-management/implementation.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 |
# File 'lib/cpee-model-management/implementation.rb', line 840 def response redis = @a[0] engine = @p[0].value uuid = @r[-1] prefix = File.join(engine,uuid.to_s) url, , path, name, state, cpu, mem, parent = redis.mget( File.join(prefix,'instance-url'), File.join(prefix,'author'), File.join(prefix,'path'), File.join(prefix,'name'), File.join(prefix,'state'), File.join(prefix,'cpu'), File.join(prefix,'mem'), File.join(prefix,'parent') ) Riddl::Parameter::Complex.new('instance','application/json',JSON.generate(:uuid => uuid, :url => url, :author => , :path => path, :name => name, :state => state, :cpu => cpu, :mem => mem, :parent => parent)) end |