Sha256: cae07886aec89a8731856ad042e8a692a9eb264ee2d0c385f5ce9a517d05e724

Contents?: true

Size: 736 Bytes

Versions: 18

Compression:

Stored size: 736 Bytes

Contents

put_target_file("INST/test.txt", "this is a string test")
download_file("INST/test.txt") # download via path
file = get_target_file("INST/test.txt")
puts file.read
file.rewind # rewind so download_file can read
download_file(file) # download using file
file.delete
delete_target_file("INST/test.txt")

save_file = Tempfile.new('test')
save_file.write("this is a Io test")
save_file.rewind
put_target_file("INST/test.txt", save_file)
save_file.delete
file = get_target_file("INST/test.txt")
puts file.read
file.delete
delete_target_file("INST/test.txt")

put_target_file("INST/test.bin", "\x00\x01\x02\x03\xFF\xEE\xDD\xCC")
file = get_target_file("INST/test.bin")
puts file.read.formatted
file.delete
delete_target_file("INST/test.bin")

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
openc3-cosmos-demo-5.15.0 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.14.2 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.14.1 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.14.0 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.13.0 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.12.0 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.11.3 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.11.2 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.11.1 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.11.0 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.10.1 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.10.0 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.9.1 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.9.0 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.8.1 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.8.0 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.7.2 targets/INST/procedures/target_file.rb
openc3-cosmos-demo-5.7.0 targets/INST/procedures/target_file.rb