Sha256: 6bf41085bb57845f13695d83773a39e2415627d9a749cb60bf06cd1c96d0e008

Contents?: true

Size: 619 Bytes

Versions: 21

Compression:

Stored size: 619 Bytes

Contents

<%# coding: UTF-8 %>
class Instance < WEEL
  connectionwrapper ConnectionWrapper

<% for key, value in endpoints -%>
  endpoint :<%= key %> => <%=  CPEE::ValueHelper::parse(value).inspect %>
<% end  -%>

<% for key, value in dataelements -%>
  data :<%= key %> => <%=  CPEE::ValueHelper::parse(value).inspect %>
<% end -%>

<% unless positions.nil? || positions.empty? -%>
  search <% positions.each_with_index { |de,i| %><%= (i > 0 ? ', ' : '') %>Position.new(:<%= de[0] %>, :<%=de[1] %>, <%= de[2].nil? || de[2].strip.empty? ? 'nil' : '"' + de[2] + '"' %>)<% } %>
<% end -%>

  <%= dsl.strip.gsub(/\n/,"\n  ") %>
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
cpee-2.1.44 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.43 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.41 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.39 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.38 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.37 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.36 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.35 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.34 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.33 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.32 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.30 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.29 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.27 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.26 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.25 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.24 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.23 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.22 server/executionhandlers/ruby/backend/instance.template
cpee-2.1.21 server/executionhandlers/ruby/backend/instance.template