Module: CPEE::Instantiation
- Defined in:
- lib/cpee/instantiation.rb
Defined Under Namespace
Modules: Helpers Classes: ContinueTask, HandleInstance, InstantiateUrl, InstantiateXML
Constant Summary collapse
- SERVER =
File.(__dir__ + '/../instantiation.xml')
Class Method Summary collapse
Class Method Details
.implementation(opts) ⇒ Object
}}}
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/cpee/instantiation.rb', line 210 def self::implementation(opts) opts[:cpee] ||= 'http://localhost:9298/' opts[:self] ||= "http#{opts[:secure] ? 's' : ''}://#{opts[:host]}:#{opts[:port]}/" opts[:cblist] ||= {} Proc.new do on resource do run InstantiateXML, opts[:cpee], true if post 'xmlsimple' on resource 'xml' do run InstantiateXML, opts[:cpee], false if post 'xml' end on resource 'url' do run InstantiateUrl, opts[:cpee], opts[:self], opts[:cblist] if post 'url' end on resource 'instance' do run HandleInstance, opts[:cpee] if post 'instance' end on resource 'callback' do on resource do run ContinueTask, opts[:cblist] if post end end end end end |