Sha256: ad2dd424aede753f22c8fb78a8f3d534ba84c9cf7d9a2beed7233cafd7a35296
Contents?: true
Size: 1.75 KB
Versions: 3
Compression:
Stored size: 1.75 KB
Contents
# Copyright (c) 2012 National ICT Australia Limited (NICTA). # This software may be used and distributed solely under the terms of the MIT license (License). # You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT. # By downloading or using this software you accept the terms and the liability disclaimer in the License. module OmfEc module Backward module DSL class << self def included(base) v5_style(:defProperty, base) v5_style(:defEvent, base) v5_style(:onEvent, base) v5_style(:allEqual, base) v5_style(:onEvent, base) v5_style(:allGroups, base) v5_style(:allNodes!, base) v5_style(:defGraph, base) v5_style(:defGroup, base) v5_style(:loadOEDL, base) v5_style(:ensureProperty, base) v5_style(:defQuery, base) end def v5_style(name, base) new_name = name.to_s.underscore.to_sym unless method_defined? new_name base.class_eval do alias_method name, new_name end end end end def defApplication(uri, name=nil ,&block) # URI parameter was used by previous OMF5 EC, for now we # do nothing with it in OMF6 name = uri if name.nil? def_application(name,&block) end # Wait for some time before issuing more commands # # @param [Fixnum] duration Time to wait in seconds (can be # def wait(duration) info "Request from Experiment Script: Wait for #{duration}s...." warn "Calling 'wait' or 'sleep' will block entire EC event loop. Please try 'after' or 'every'" sleep duration.to_s.to_i end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
omf_ec-6.1.9 | lib/omf_ec/backward/dsl.rb |
omf_ec-6.1.9.pre.4 | lib/omf_ec/backward/dsl.rb |
omf_ec-6.1.9.pre.3 | lib/omf_ec/backward/dsl.rb |