Class: CPEE::Instantiation::InstantiateGit
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Instantiation::InstantiateGit
- Includes:
- Helpers
- Defined in:
- lib/cpee-instantiation/instantiation.rb
Overview
}}}
Instance Method Summary collapse
Methods included from Helpers
#add_running_to_testset, #add_to_testset, #add_waiting_to_testset, #augment_testset, #customize_testset, #instantiate_testset
Instance Method Details
#response ⇒ Object
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/cpee-instantiation/instantiation.rb', line 167 def response cpee = @h['X_CPEE'] || @a[0] selfurl = @a[1] cblist = @a[2] behavior = @p[0].value status, res = Riddl::Client.new(File.join(@p[1].value,'raw',@p[2].value,@p[3].value).gsub(/ /,'%20')).get tdoc = if status >= 200 && status < 300 res[0].value.read else (@status = 500) && return end customization = @p.find{ |e| e.name == 'customization' }&.value doc = augment_testset(tdoc,@p,@h) customize_testset(customization,doc) cbk, condition = add_waiting_to_testset(behavior,@h['CPEE_CALLBACK'],doc,selfurl) add_running_to_testset(behavior,doc) instantiate_testset(cpee,doc,@p[0].value,cblist,cbk,@h['CPEE_CALLBACK'],condition) end |