openc3-demo 5.0.9 → 5.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd50474a9d34098d31bf02421d64e124857e62629b6ea410c517e846e67087b9
4
- data.tar.gz: 80fe1abedef74980efd34b021225468ec5d11a3cf68ea62e4bec01d03290a430
3
+ metadata.gz: c8c41e135d9c87d5a114051dfe52fe5132609edcd9dafd0c700c3987cdad5543
4
+ data.tar.gz: debce68eef521deea54e12f91c6adcd31855e3015628b2b5e1bddf6ef42aa5b5
5
5
  SHA512:
6
- metadata.gz: d6e3a765a7482134562d89e25bd187fa05b2323928b4f145cc3217b99073b9e353e76c25c863bc85b12e9c961ffeb504425923be4c9f7a6ba64102db0f8d5ef7
7
- data.tar.gz: f6b1972484b4954e553606bb51260a28f5382a773069750d1076618d0d6d8d36072229cc8a89c44f689eb8026454c8e15bf5a615eee582dcda40baf1c87c21ce
6
+ metadata.gz: 998596f7f6c83fe0d8f27cfda7ce402344d77e4511953b2add4c6909c20a76bcbe1ab628a77d966673101e877618fd8f8e69855d3c1ca7c7ac37ad1b0cc9afad
7
+ data.tar.gz: 78b37fa192573a8c03812440510602b7d450ccd4cf472ce736136c593adc6013731832e71fda73d9e45f14a9af349766202f12600bdcbd696bbe5528d8914a5a
data/plugin.txt CHANGED
@@ -15,7 +15,9 @@ VARIABLE templated_int_name TEMPLATED_INT
15
15
  VARIABLE demo_tool_name Demo
16
16
  VARIABLE example_microservice_name openc3-example
17
17
  VARIABLE templated_microservice_name openc3-templated
18
+ VARIABLE example_host openc3-operator
18
19
  VARIABLE example_port 9999
20
+ VARIABLE templated_host openc3-operator
19
21
  VARIABLE templated_port 5025
20
22
  VARIABLE inst_router_port 7779
21
23
  VARIABLE log_retain_time 172800
@@ -80,14 +82,14 @@ VARIABLE reduced_log_retain_time 2592000
80
82
  <% end %>
81
83
 
82
84
  <% if include_example and include_example_int %>
83
- INTERFACE <%= example_int_name %> example_interface.rb openc3-operator <%= example_port %>
85
+ INTERFACE <%= example_int_name %> example_interface.rb <%= example_host %> <%= example_port %>
84
86
  MAP_TARGET <%= example_target_name %>
85
87
  DONT_CONNECT
86
88
  LOG_RAW
87
89
  <% end %>
88
90
 
89
91
  <% if include_templated and include_templated_int %>
90
- INTERFACE <%= templated_int_name %> templated_interface.rb openc3-operator <%= templated_port %> <%= templated_port %> 5.0 nil TEMPLATE 0xA 0xA
92
+ INTERFACE <%= templated_int_name %> templated_interface.rb <%= templated_host %> <%= templated_port %> <%= templated_port %> 5.0 nil TEMPLATE 0xA 0xA
91
93
  MAP_TARGET <%= templated_target_name %>
92
94
  DONT_CONNECT
93
95
  <% end %>
@@ -100,12 +102,14 @@ VARIABLE reduced_log_retain_time 2592000
100
102
  <% if include_example_microservice %>
101
103
  MICROSERVICE EXAMPLE <%= example_microservice_name %>
102
104
  WORK_DIR .
105
+ PORT <%= example_port %>
103
106
  CMD ruby example_target.rb <%= example_target_name %> <%= example_port %>
104
107
  <% end %>
105
108
 
106
109
  <% if include_templated_microservice %>
107
110
  MICROSERVICE TEMPLATED <%= templated_microservice_name %>
108
111
  WORK_DIR .
112
+ PORT <%= templated_port %>
109
113
  CMD ruby scpi_target.rb <%= templated_target_name %> <%= templated_port %>
110
114
  <% end %>
111
115
 
@@ -1,13 +1,15 @@
1
1
  # Specify the title and message and filter to txt files
2
2
  file = open_file_dialog("Open a single file", "Choose something interesting", filter: ".txt")
3
3
  puts file # Ruby File object
4
+ puts file.path # Path of the tempfile (generally not used)
5
+ puts file.filename # Filename that was selected in the dialog
4
6
  puts file.read
5
7
  file.delete
6
8
 
7
9
  files = open_files_dialog("Open multiple files") # message is optional
8
10
  puts files # Array of File objects (even if you select only one)
9
11
  files.each do |file|
10
- puts file
12
+ puts file.filename
11
13
  puts file.read
12
14
  file.delete
13
15
  end