openc3-demo 5.0.9 → 5.0.11

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: 41053fbbbebfeba19575e6b8f15946c4b22253881e70b691a7cd7b1d7b456a63
4
+ data.tar.gz: b372020a4707c036984d8cf25280600ce31936cf61597fdabbd69c808898f935
5
5
  SHA512:
6
- metadata.gz: d6e3a765a7482134562d89e25bd187fa05b2323928b4f145cc3217b99073b9e353e76c25c863bc85b12e9c961ffeb504425923be4c9f7a6ba64102db0f8d5ef7
7
- data.tar.gz: f6b1972484b4954e553606bb51260a28f5382a773069750d1076618d0d6d8d36072229cc8a89c44f689eb8026454c8e15bf5a615eee582dcda40baf1c87c21ce
6
+ metadata.gz: 7e15d5f8bfa9f6013961d135ce589f8fb2f2c2cb1617e6054edf7fb6ab32d8ff9aaa88670a559258fb244b8799c2f30fabee198a4fc7165003d201a3f62fc1c2
7
+ data.tar.gz: 1fab9c94e9a66d192c1070ab0dac7d6b5aa5a73232967acd6330a7fbd206b5c158b723a182a7c7966db944079a425441abb4de9788598d1bd3631697f184929a
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