Sha256: 168bd6235587d669949133e784bb33d115cf12cadb39c938fa451752b0006c4f
Contents?: true
Size: 589 Bytes
Versions: 3
Compression:
Stored size: 589 Bytes
Contents
module Polytrix module Runners class LinuxChallengeRunner < ChallengeRunner def script_extension 'sh' end def challenge_command(env_file, challenge_script) challenge_script = "./#{challenge_script}" unless challenge_script.to_s.start_with? '/' if File.exist? 'scripts/wrapper' ". #{env_file} && scripts/wrapper #{challenge_script}" else ". #{env_file} && #{challenge_script}" end end def save_environment_variable(key, value) "export #{key}=\"#{value}\"" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems