shared_code

Rule language generic support

    • Given Clean OpenHAB with latest Ruby Libraries
  • Call function from rule

    • Given code in a shared file named "shared_file.rb"
      def shared_function
        logger.info("Shared Function Test")
      end
    • Given code in a rules file
      require "shared_file"
      
      shared_function
    • When I deploy the rules file
    • Then It should log 'Shared Function Test' within 5 seconds