Sha256: f3497e0742ae6760593a2b32fcf78dca4c7c5c9eb1a072b28437859cdc2c91a6
Contents?: true
Size: 1.71 KB
Versions: 13
Compression:
Stored size: 1.71 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) 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
13 entries across 13 versions & 1 rubygems