Sha256: 0c9a926e18e0d7f8c0696af428009aa3949a827d20d1ebb7ee418c18bb19ce97
Contents?: true
Size: 1.13 KB
Versions: 22
Compression:
Stored size: 1.13 KB
Contents
#!/usr/bin/env ruby # encoding: ascii-8bit # Copyright 2014 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU General Public License # as published by the Free Software Foundation; version 3 with # attribution addendums as found in the LICENSE.txt def autohotkey(command_name, ahk_script = nil) Dir.chdir(File.join(File.expand_path(File.dirname(__FILE__)), '..', '..')) require "./spec/spec_helper.rb" # Set the user path to our COSMOS configuration in the autohotkey directory Cosmos::USERPATH.replace File.join(File.expand_path(File.dirname(__FILE__)), '..') SimpleCov.command_name command_name if ahk_script Thread.new do `AutoHotKey.exe #{File.join(File.expand_path(File.dirname(__FILE__)), ahk_script)}` end end yield sleep(2) # Clean up CTS log files Dir["autohotkey/outputs/logs/*"].each do |file| next if File.basename(file) == "cmd.bin" || File.basename(file) == "tlm.bin" || File.basename(file) == "bigtlm.bin" || File.basename(file).include?('exception') File.delete file end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
cosmos-3.2.0 | autohotkey/tools/autohotkey.rb |
cosmos-3.1.2 | autohotkey/tools/autohotkey.rb |