Class: CPEE::NewInstance
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::NewInstance
- Defined in:
- lib/cpee/implementation.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/cpee/implementation.rb', line 139 def response controller = @a[0] opts = @a[1] name = @p[0].value id = controller.keys.sort.last.to_i while true id += 1 Dir.mkdir(opts[:instances] + "/#{id}") rescue nil break end controller[id] = Controller.new(id,opts) info = controller[id].properties.data.find("/p:properties/p:attributes/p:info") info.first.text = name if info.length == 1 Riddl::Parameter::Simple.new("id", id) end |