teuton 2.4.0 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -6
  3. data/docs/changelog/todo.md +10 -1
  4. data/docs/changelog/v2.4.md +5 -1
  5. data/docs/commands/README.md +8 -17
  6. data/docs/commands/example_check.md +4 -4
  7. data/docs/commands/example_run.md +10 -32
  8. data/docs/dsl/README.md +27 -39
  9. data/docs/dsl/{definition/expect.md → expect.md} +2 -18
  10. data/docs/dsl/{execution/export.md → export.md} +4 -8
  11. data/docs/dsl/{setting/get.md → get.md} +4 -10
  12. data/docs/dsl/{definition/group.md → group.md} +2 -7
  13. data/docs/dsl/{execution/play.md → play.md} +1 -6
  14. data/docs/dsl/{definition/result.md → result.md} +1 -6
  15. data/docs/dsl/{definition/run_remote.md → run.md} +57 -23
  16. data/docs/dsl/{execution/send.md → send.md} +1 -8
  17. data/docs/dsl/{setting/set.md → set.md} +1 -7
  18. data/docs/dsl/{execution/show.md → show.md} +7 -16
  19. data/docs/dsl/target.md +33 -0
  20. data/docs/ideas/todo.md +35 -115
  21. data/docs/install/README.md +26 -42
  22. data/docs/install/s-node.md +35 -0
  23. data/docs/install/t-node.md +76 -0
  24. data/docs/learn/01-cmd_new.md +28 -0
  25. data/docs/learn/{01-target.md → 02-target.md} +21 -28
  26. data/docs/learn/03-remote_hosts.md +59 -87
  27. data/docs/learn/04-config.md +147 -0
  28. data/docs/learn/05-use.md +25 -45
  29. data/docs/learn/06-cmd_check.md +50 -0
  30. data/docs/learn/07-target_weight.md +44 -0
  31. data/docs/learn/08-unique_values.md +70 -0
  32. data/docs/learn/09-send.md +20 -0
  33. data/docs/learn/10-debug.md +45 -0
  34. data/docs/learn/11-export.md +35 -0
  35. data/docs/learn/{09-preserve.md → 12-preserve.md} +1 -1
  36. data/docs/learn/13-feedback.md +49 -0
  37. data/docs/learn/14-moodle_id.md +24 -0
  38. data/docs/learn/{08-readme.md → 15-readme.md} +5 -9
  39. data/docs/learn/{13-include.md → 16-include.md} +1 -3
  40. data/docs/learn/{14-alias.md → 17-alias.md} +0 -0
  41. data/docs/learn/{07-log.md → 18-log.md} +19 -23
  42. data/docs/learn/{12-get_vars.md → 19-read_vars.md} +3 -3
  43. data/docs/learn/20-macros.md +49 -0
  44. data/docs/learn/{16-exit_codes.md → 21-exit_codes.md} +0 -0
  45. data/docs/learn/{10-result.md → 22-result.md} +3 -3
  46. data/docs/learn/23-test-code.md +54 -0
  47. data/docs/learn/24-test-sql.md +69 -0
  48. data/docs/learn/README.md +31 -32
  49. data/lib/teuton/application.rb +2 -5
  50. data/lib/teuton/case_manager/case/case.rb +2 -1
  51. data/lib/teuton/case_manager/case/dsl/expect.rb +3 -1
  52. data/lib/teuton/case_manager/case/dsl/goto.rb +1 -1
  53. data/lib/teuton/case_manager/case/dsl/log.rb +5 -3
  54. data/lib/teuton/case_manager/case/dsl/send.rb +2 -2
  55. data/lib/teuton/case_manager/case/dsl/target.rb +1 -1
  56. data/lib/teuton/case_manager/case/result/ext_compare.rb +20 -21
  57. data/lib/teuton/case_manager/case/result/ext_filter.rb +15 -8
  58. data/lib/teuton/case_manager/case_manager.rb +10 -8
  59. data/lib/teuton/check/show.rb +1 -1
  60. data/lib/teuton/files/config.yaml +1 -2
  61. data/lib/teuton/files/start.rb +4 -4
  62. data/lib/teuton/readme/dsl.rb +9 -1
  63. data/lib/teuton/readme/readme.rb +8 -1
  64. data/lib/teuton/report/formatter/base_formatter.rb +2 -0
  65. data/lib/teuton/report/formatter/formatter.rb +1 -0
  66. data/lib/teuton/report/show.rb +8 -0
  67. data/lib/teuton/version.rb +1 -1
  68. data/lib/teuton.rb +2 -1
  69. metadata +72 -54
  70. data/docs/dsl/definition/run_local.md +0 -33
  71. data/docs/dsl/definition/target.md +0 -40
  72. data/docs/install/scripts.md +0 -96
  73. data/docs/learn/02-config.md +0 -121
  74. data/docs/learn/04-new_test.md +0 -87
  75. data/docs/learn/06-debug.md +0 -110
  76. data/docs/learn/11-moodle_id.md +0 -19
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This is an extension of Result class
3
+ # Extension of Result class
4
4
  class Result
5
5
  def eq(input)
6
6
  # Return true when content is equal than input
@@ -22,10 +22,10 @@ class Result
22
22
  end
23
23
  value == input
24
24
  end
25
- alias eq? eq
26
- alias equal eq
27
- alias equal? eq
28
- alias is_equal? eq
25
+ alias_method :eq?, :eq
26
+ alias_method :equal, :eq
27
+ alias_method :equal?, :eq
28
+ alias_method :is_equal?, :eq
29
29
 
30
30
  def neq(external)
31
31
  @expected = "Not equal to #{external}"
@@ -44,9 +44,9 @@ class Result
44
44
  end
45
45
  internal != external
46
46
  end
47
- alias neq? neq
48
- alias not_equal neq
49
- alias not_equal? neq
47
+ alias_method :neq?, :neq
48
+ alias_method :not_equal, :neq
49
+ alias_method :not_equal?, :neq
50
50
 
51
51
  def ge(input)
52
52
  @expected = "Greater or equal to #{input}"
@@ -65,8 +65,8 @@ class Result
65
65
  end
66
66
  value >= input
67
67
  end
68
- alias greater_or_equal ge
69
- alias greater_or_equal? ge
68
+ alias_method :greater_or_equal, :ge
69
+ alias_method :greater_or_equal?, :ge
70
70
 
71
71
  def gt(input)
72
72
  @expected = "Greater than #{input}"
@@ -85,8 +85,8 @@ class Result
85
85
  end
86
86
  value > input
87
87
  end
88
- alias greater gt
89
- alias greater_than gt
88
+ alias_method :greater, :gt
89
+ alias_method :greater_than, :gt
90
90
 
91
91
  def le(input)
92
92
  @expected = "Lesser or equal to #{input}"
@@ -106,8 +106,8 @@ class Result
106
106
  end
107
107
  value <= input
108
108
  end
109
- alias lesser_or_equal le
110
- alias lesser_or_equal? le
109
+ alias_method :lesser_or_equal, :le
110
+ alias_method :lesser_or_equal?, :le
111
111
 
112
112
  def lt(input)
113
113
  @expected = "Lesser than #{input}"
@@ -126,9 +126,9 @@ class Result
126
126
  end
127
127
  value < input
128
128
  end
129
- alias lesser lt
130
- alias smaller lt
131
- alias lesser_than lt
129
+ alias_method :lesser, :lt
130
+ alias_method :smaller, :lt
131
+ alias_method :lesser_than, :lt
132
132
 
133
133
  # Return 'true' if the parameter value is near to the target value.
134
134
  # To get this we consider a 10% desviation or less, as an acceptable result.
@@ -142,8 +142,7 @@ class Result
142
142
 
143
143
  false
144
144
  end
145
- alias near_to near_to?
146
- alias near? near_to?
147
- alias near near_to?
145
+ alias_method :near_to, :near_to?
146
+ alias_method :near?, :near_to?
147
+ alias_method :near, :near_to?
148
148
  end
149
- # rubocop:enable Metrics/ClassLength
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This is an extension of Result class
3
+ # Result class extension
4
4
  class Result
5
5
  # TODO: Error line 102 undefined include? method for 0 Fixnum...
6
6
  def find(filter)
@@ -15,9 +15,9 @@ class Result
15
15
  end
16
16
  self
17
17
  end
18
- alias grep find
19
- alias grep! find
20
- alias find! find
18
+ alias_method :grep, :find
19
+ alias_method :grep!, :find
20
+ alias_method :find!, :find
21
21
 
22
22
  def first
23
23
  @alterations << "first"
@@ -25,14 +25,21 @@ class Result
25
25
  self
26
26
  end
27
27
 
28
- def not_find(p_filter)
29
- @alterations << "not_find(#{p_filter})"
28
+ def not_find(filter)
29
+ @alterations << "not_find(#{filter})"
30
30
  return self if @content.size.zero?
31
31
 
32
- @content.reject! { |i| i.include?(p_filter) }
32
+ case filter.class.to_s
33
+ when "Array"
34
+ filter.each { |i| not_find(i.to_s) }
35
+ when "String" || "Integer"
36
+ @content.reject! { |i| i.include?(filter.to_s) }
37
+ when "Regexp"
38
+ @content.reject! { |i| filter.match(i) }
39
+ end
33
40
  self
34
41
  end
35
- alias grep_v not_find
42
+ alias_method :grep_v, :not_find
36
43
 
37
44
  def since(filter)
38
45
  @alterations << "since(#{filter})"
@@ -47,10 +47,12 @@ class CaseManager
47
47
  # @param args (Hash) Export options
48
48
  def export(args = {})
49
49
  if args.class != Hash
50
- puts "[ERROR] CaseManager#export: Argument error!"
51
- puts " Source : export #{args} <#{args.class}>"
52
- puts " Usage : export format: 'txt'"
53
- raise "[ERROR] CaseManager#export: Argument error!"
50
+ puts Rainbow("[ERROR] Argument error with 'export'!").red
51
+ puts Rainbow(" Code : CaseManager#export").red
52
+ puts Rainbow(" Line : export #{args}").red
53
+ puts Rainbow(" Use : export format: 'txt'").red
54
+ puts ""
55
+ exit 1
54
56
  end
55
57
  ExportManager.run(@report, @cases, args)
56
58
  end
@@ -61,12 +63,12 @@ class CaseManager
61
63
  def send(args = {})
62
64
  threads = []
63
65
  puts ""
64
- # puts Rainbow("-" * 50).green
65
- puts Rainbow("[INFO] Sending files...#{args}").color(:green)
66
+ puts Rainbow("-" * 50).green
67
+ puts Rainbow("Sending files...#{args}").color(:green)
66
68
  @cases.each { |c| threads << Thread.new { c.send(args) } }
67
69
  threads.each(&:join)
68
- puts Rainbow("[INFO] Finished").color(:green)
69
- # puts Rainbow("-" * 50).green
70
+ puts Rainbow("Sending finished!").color(:green)
71
+ puts Rainbow("-" * 50).green
70
72
  end
71
73
 
72
74
  def show(options = {verbose: 1})
@@ -131,7 +131,7 @@ class Laboratory
131
131
  st.add_separator
132
132
  st.add_row ["Groups", @stats[:groups]]
133
133
  st.add_row ["Targets", @stats[:targets]]
134
- st.add_row ["Goto", @stats[:hosts]]
134
+ st.add_row ["Runs", @stats[:hosts]]
135
135
  @hosts.each_pair { |k, v| st.add_row [" * #{k}", v] }
136
136
  st.add_row ["Uniques", @stats[:uniques]]
137
137
  st.add_row ["Logs", @stats[:uniques]]
@@ -1,5 +1,4 @@
1
1
  ---
2
2
  global:
3
3
  cases:
4
- - tt_members: MEMBERS
5
- tt_moodle_id: MOODLE_ID
4
+ - tt_members: NAMES_TO-CHANGE
@@ -1,7 +1,7 @@
1
- group "GROUP NAME" do
2
- target "TARGET_1 DESCRIPTION"
3
- run "COMMAND_1"
4
- expect "TEXT_1"
1
+ group "NAME-TO-CHANGE" do
2
+ target "DESC_TO-CHANGE"
3
+ run "COMMAND_TO-CHANGE"
4
+ expect "TEXT_TO-CHANGE"
5
5
  end
6
6
 
7
7
  play do
@@ -87,10 +87,18 @@ class Readme
87
87
  end
88
88
 
89
89
  # If a method call is missing, then delegate to concept parent.
90
- def method_missing(method, args = {})
90
+ # def method_missing(method, args = {})
91
+ def method_missing(method, *args, &block)
91
92
  m = method.to_s
92
93
  if m[0] == "_"
93
94
  instance_eval("get(:#{m[1, m.size - 1]})", __FILE__, __LINE__)
95
+ elsif not Application.instance.macros[m].nil?
96
+ puts "macro exec: #{m}"
97
+ code = ""
98
+ args[0].keys.each { |key| code += "set(:#{key}, '#{args[0][key]}')\n" }
99
+ puts code
100
+ # instance_eval(code)
101
+ # Application.instance.macros[m].call
94
102
  end
95
103
  end
96
104
 
@@ -1,6 +1,7 @@
1
1
  require_relative "../application"
2
2
  require_relative "../utils/configfile_reader"
3
3
  require_relative "../case_manager/case/result/result"
4
+ require_relative "../version"
4
5
  require_relative "dsl"
5
6
  require_relative "lang"
6
7
 
@@ -14,6 +15,11 @@ def use(filename)
14
15
  require_relative use[0]
15
16
  end
16
17
 
18
+ def define_macro(name, *args, &block)
19
+ puts "macro: #{name}"
20
+ Application.instance.macros[name] = {args: args, block: block}
21
+ end
22
+
17
23
  def group(name, &block)
18
24
  Application.instance.groups << {name: name, block: block}
19
25
  end
@@ -58,6 +64,7 @@ class Readme
58
64
  @verbose = app.verbose
59
65
  @result = Result.new
60
66
  @data = {}
67
+ @data[:macros] = []
61
68
  @data[:logs] = []
62
69
  @data[:groups] = []
63
70
  @data[:play] = []
@@ -86,7 +93,7 @@ class Readme
86
93
  puts "```"
87
94
  puts format(Lang.get(:testname), app.test_name)
88
95
  puts format(Lang.get(:date), Time.now)
89
- puts format(Lang.get(:version), Application::VERSION)
96
+ puts format(Lang.get(:version), Teuton::VERSION)
90
97
  puts "```"
91
98
  puts "\n"
92
99
  puts "# #{app.test_name}\n"
@@ -1,4 +1,6 @@
1
1
  class BaseFormatter
2
+ attr_reader :ext
3
+
2
4
  def initialize(report)
3
5
  @head = report.head.clone
4
6
  @lines = report.lines.clone
@@ -22,6 +22,7 @@ module Formatter
22
22
  end
23
23
  formatter = klass.new(report)
24
24
  formatter.init(filename)
25
+ report.format = formatter.ext
25
26
  formatter.process(options)
26
27
  end
27
28
 
@@ -1,6 +1,14 @@
1
1
  require "rainbow"
2
+ require "terminal-table"
2
3
  require_relative "../application"
3
4
 
5
+ # | Verbosity level | Description |
6
+ # | :-------------: | ----------- |
7
+ # | 0 | No output |
8
+ # | 1 | Default output messages |
9
+ # | 2 | Show hall of fame |
10
+ # | 3 | Show final values |
11
+ # | 4 | Show Initial values |
4
12
  class ShowReport
5
13
  def initialize(report)
6
14
  @report = report
@@ -1,5 +1,5 @@
1
1
  module Teuton
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.2"
3
3
  APPNAME = "teuton"
4
4
  GEMNAME = "teuton"
5
5
  DOCKERNAME = "dvarrui/#{GEMNAME}"
data/lib/teuton.rb CHANGED
@@ -38,7 +38,8 @@ module Teuton
38
38
  require_relative app.script_path
39
39
  rescue SyntaxError => e
40
40
  puts e.to_s
41
- puts Rainbow.new("==> [FAIL] SyntaxError into file #{app.script_path}").red
41
+ puts Rainbow.new("[FAIL ] Reading file #{app.script_path}").red
42
+ puts Rainbow.new("[ERROR] Syntax Error!").red
42
43
  end
43
44
  end
44
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teuton
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Vargas Ruiz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-27 00:00:00.000000000 Z
11
+ date: 2023-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -150,18 +150,17 @@ extra_rdoc_files:
150
150
  - docs/commands/example_check.md
151
151
  - docs/commands/example_run.md
152
152
  - docs/dsl/README.md
153
- - docs/dsl/definition/expect.md
154
- - docs/dsl/definition/group.md
155
- - docs/dsl/definition/result.md
156
- - docs/dsl/definition/run_local.md
157
- - docs/dsl/definition/run_remote.md
158
- - docs/dsl/definition/target.md
159
- - docs/dsl/execution/export.md
160
- - docs/dsl/execution/play.md
161
- - docs/dsl/execution/send.md
162
- - docs/dsl/execution/show.md
163
- - docs/dsl/setting/get.md
164
- - docs/dsl/setting/set.md
153
+ - docs/dsl/expect.md
154
+ - docs/dsl/export.md
155
+ - docs/dsl/get.md
156
+ - docs/dsl/group.md
157
+ - docs/dsl/play.md
158
+ - docs/dsl/result.md
159
+ - docs/dsl/run.md
160
+ - docs/dsl/send.md
161
+ - docs/dsl/set.md
162
+ - docs/dsl/show.md
163
+ - docs/dsl/target.md
165
164
  - docs/es/exit_code.md
166
165
  - docs/es/guess_os.md
167
166
  - docs/ideas/Challenge-Server-Project.md
@@ -171,23 +170,33 @@ extra_rdoc_files:
171
170
  - docs/install/README.md
172
171
  - docs/install/manual.md
173
172
  - docs/install/modes_of_use.md
174
- - docs/install/scripts.md
173
+ - docs/install/s-node.md
174
+ - docs/install/t-node.md
175
175
  - docs/install/vagrant_docker.md
176
- - docs/learn/01-target.md
177
- - docs/learn/02-config.md
176
+ - docs/learn/01-cmd_new.md
177
+ - docs/learn/02-target.md
178
178
  - docs/learn/03-remote_hosts.md
179
- - docs/learn/04-new_test.md
179
+ - docs/learn/04-config.md
180
180
  - docs/learn/05-use.md
181
- - docs/learn/06-debug.md
182
- - docs/learn/07-log.md
183
- - docs/learn/08-readme.md
184
- - docs/learn/09-preserve.md
185
- - docs/learn/10-result.md
186
- - docs/learn/11-moodle_id.md
187
- - docs/learn/12-get_vars.md
188
- - docs/learn/13-include.md
189
- - docs/learn/14-alias.md
190
- - docs/learn/16-exit_codes.md
181
+ - docs/learn/06-cmd_check.md
182
+ - docs/learn/07-target_weight.md
183
+ - docs/learn/08-unique_values.md
184
+ - docs/learn/09-send.md
185
+ - docs/learn/10-debug.md
186
+ - docs/learn/11-export.md
187
+ - docs/learn/12-preserve.md
188
+ - docs/learn/13-feedback.md
189
+ - docs/learn/14-moodle_id.md
190
+ - docs/learn/15-readme.md
191
+ - docs/learn/16-include.md
192
+ - docs/learn/17-alias.md
193
+ - docs/learn/18-log.md
194
+ - docs/learn/19-read_vars.md
195
+ - docs/learn/20-macros.md
196
+ - docs/learn/21-exit_codes.md
197
+ - docs/learn/22-result.md
198
+ - docs/learn/23-test-code.md
199
+ - docs/learn/24-test-sql.md
191
200
  - docs/learn/README.md
192
201
  - docs/learn/videos.md
193
202
  - docs/videos.md
@@ -207,18 +216,17 @@ files:
207
216
  - docs/commands/example_check.md
208
217
  - docs/commands/example_run.md
209
218
  - docs/dsl/README.md
210
- - docs/dsl/definition/expect.md
211
- - docs/dsl/definition/group.md
212
- - docs/dsl/definition/result.md
213
- - docs/dsl/definition/run_local.md
214
- - docs/dsl/definition/run_remote.md
215
- - docs/dsl/definition/target.md
216
- - docs/dsl/execution/export.md
217
- - docs/dsl/execution/play.md
218
- - docs/dsl/execution/send.md
219
- - docs/dsl/execution/show.md
220
- - docs/dsl/setting/get.md
221
- - docs/dsl/setting/set.md
219
+ - docs/dsl/expect.md
220
+ - docs/dsl/export.md
221
+ - docs/dsl/get.md
222
+ - docs/dsl/group.md
223
+ - docs/dsl/play.md
224
+ - docs/dsl/result.md
225
+ - docs/dsl/run.md
226
+ - docs/dsl/send.md
227
+ - docs/dsl/set.md
228
+ - docs/dsl/show.md
229
+ - docs/dsl/target.md
222
230
  - docs/es/exit_code.md
223
231
  - docs/es/guess_os.md
224
232
  - docs/ideas/Challenge-Server-Project.md
@@ -228,23 +236,33 @@ files:
228
236
  - docs/install/README.md
229
237
  - docs/install/manual.md
230
238
  - docs/install/modes_of_use.md
231
- - docs/install/scripts.md
239
+ - docs/install/s-node.md
240
+ - docs/install/t-node.md
232
241
  - docs/install/vagrant_docker.md
233
- - docs/learn/01-target.md
234
- - docs/learn/02-config.md
242
+ - docs/learn/01-cmd_new.md
243
+ - docs/learn/02-target.md
235
244
  - docs/learn/03-remote_hosts.md
236
- - docs/learn/04-new_test.md
245
+ - docs/learn/04-config.md
237
246
  - docs/learn/05-use.md
238
- - docs/learn/06-debug.md
239
- - docs/learn/07-log.md
240
- - docs/learn/08-readme.md
241
- - docs/learn/09-preserve.md
242
- - docs/learn/10-result.md
243
- - docs/learn/11-moodle_id.md
244
- - docs/learn/12-get_vars.md
245
- - docs/learn/13-include.md
246
- - docs/learn/14-alias.md
247
- - docs/learn/16-exit_codes.md
247
+ - docs/learn/06-cmd_check.md
248
+ - docs/learn/07-target_weight.md
249
+ - docs/learn/08-unique_values.md
250
+ - docs/learn/09-send.md
251
+ - docs/learn/10-debug.md
252
+ - docs/learn/11-export.md
253
+ - docs/learn/12-preserve.md
254
+ - docs/learn/13-feedback.md
255
+ - docs/learn/14-moodle_id.md
256
+ - docs/learn/15-readme.md
257
+ - docs/learn/16-include.md
258
+ - docs/learn/17-alias.md
259
+ - docs/learn/18-log.md
260
+ - docs/learn/19-read_vars.md
261
+ - docs/learn/20-macros.md
262
+ - docs/learn/21-exit_codes.md
263
+ - docs/learn/22-result.md
264
+ - docs/learn/23-test-code.md
265
+ - docs/learn/24-test-sql.md
248
266
  - docs/learn/README.md
249
267
  - docs/learn/videos.md
250
268
  - docs/videos.md
@@ -1,33 +0,0 @@
1
- [<< back](../README.md)
2
-
3
- 1. [Description](#description)
4
- 2. [Usage](#usage)
5
- 3. [Alias](#alias)
6
- 4. [Example](#example)
7
-
8
- ## Description
9
-
10
- Execute command on localhost and save output into result object.
11
-
12
- ## Usage
13
-
14
- ```ruby
15
- run "id COMMAND"
16
- ```
17
-
18
- ## Alias
19
-
20
- In fact it's the same as doing next:
21
-
22
- ```ruby
23
- run "COMMAND", on: :localhost
24
- ```
25
-
26
- ## Example
27
-
28
- ```ruby
29
- run "id david"
30
- ```
31
-
32
- * This instruction execute "id david" command on local machine, and save results into **result** object.
33
- * Local machine is where the `Teuton` program is running.
@@ -1,40 +0,0 @@
1
- [<< back](../README.md)
2
-
3
- 1. [Description](#description)
4
- 2. [Usage](#usage)
5
- 4. [Weight](#weight)
6
-
7
- ## Description
8
-
9
- `target` instruction is used to begin new target/goal definition, and sets its description.
10
-
11
- ## Usage
12
-
13
- ```ruby
14
- target "Write here your description"
15
- ```
16
-
17
- * Define target description. Use your own words to describe it, so everybody could understand what is going to be measured.
18
- * This text will be shown into reports to help us understand output information easily.
19
-
20
- ## Weight
21
-
22
- By default weight is 1.0, but it's posible specified other value:
23
-
24
- ```ruby
25
- target "Write here your description", weight: 2.5
26
- ```
27
-
28
- ## [DEPRECATED] Alias
29
-
30
- `goal` keyword is an alias of `target`. So it's the same:
31
-
32
- ```ruby
33
- target "Write here your description"
34
- ```
35
-
36
- or
37
-
38
- ```ruby
39
- goal "Write here your description"
40
- ```
@@ -1,96 +0,0 @@
1
- [<< back](README.md)
2
-
3
- # Using scripts to install Teuton
4
-
5
- 1. T-Node installation
6
- * GNU/Linux
7
- * MACOSX
8
- * Windows
9
- 2. S-Node installation
10
- * GNU/Linux
11
- * MACOSX
12
- * Windows
13
- 3. Tested OS list
14
-
15
- ---
16
- # 1. T-NODE installation
17
-
18
- * **T-node**: Host where Teuton software is installed. Monitor S-NODE hosts.
19
-
20
- ## 1.1 T-NODE: GNU/Linux installation
21
-
22
- Run this command as `root` user:
23
-
24
- ```bash
25
- wget -qO- https://raw.githubusercontent.com/teuton-software/teuton/devel/install/linux/linux_t-node_install.sh | bash
26
- ```
27
-
28
- ## 1.2 T-NODE: Windows installation
29
-
30
- Requirements:
31
- * Windows 7+ / Windows Server 2003+
32
- * PowerShell v2+
33
-
34
- Run this command on **PowerShell (PS)** as `Administrator` user:
35
-
36
- ```powershell
37
- Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/teuton-software/teuton/devel/install/windows/windows_t-node_install.ps1'))
38
- ```
39
-
40
- ## 1.3 T-NODE: Mac OS X installation
41
-
42
- Run this command as admin user (member of `admin` group):
43
-
44
- ```bash
45
- curl -sL https://raw.githubusercontent.com/teuton-software/teuton/devel/install/mac/macosx_t-node_install.sh | bash
46
- ```
47
-
48
- ---
49
- # 2. S-NODE installation
50
-
51
- * **S-node**: Host where SSH server is installed. This hosts are monitotized by T-NODE host.
52
-
53
- ## 2.1 S-NODE: GNU/Linux installation
54
-
55
- Run this command as `root` user:
56
-
57
- ```bash
58
- wget -qO- https://raw.githubusercontent.com/teuton-software/teuton/devel/install/linux/linux_s-node_install.sh | bash
59
- ```
60
-
61
- ## 2.2 S-NODE: Windows installation
62
-
63
- Requirements:
64
- * Windows 7+ / Windows Server 2003+
65
- * PowerShell v2+
66
-
67
- Run this command on **PowerShell (PS)** as `Administrator` user:
68
-
69
- ```powershell
70
- Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/teuton-software/teuton/devel/install/windows/windows_s-node_install.ps1'))
71
- ```
72
-
73
- ## 2.3 S-NODE: Mac OS X installation
74
-
75
- Run this command as `root` user:
76
-
77
- ```bash
78
- curl -sL https://raw.githubusercontent.com/teuton-software/teuton/devel/install/mac/macosx_s-node_install.sh | bash
79
- ```
80
-
81
- ---
82
- # 3. Tested OS list
83
-
84
- | Type | O.S. | Version | Arch | T-node | S-node |
85
- | --------- | --------- | -------------- | ------ | ------ | ------ |
86
- | GNU/Linux | CentOS | 7 | x86-64 | | |
87
- | | Debian | 9.7.0 | x86-64 | Ok | |
88
- | | Fedora | Workstation 29 | x84-64 | Ok | |
89
- | | LinuxMint | 18.3 | x86-64 | Ok | |
90
- | | openSUSE | Leap 15 | x86-64 | Ok | Ok |
91
- | | Ubuntu | 18.04 | x86-64 | Ok | Ok |
92
- | Microsoft | Windows | 7 Enterprise | x86 | Ok | |
93
- | | Windows | 10 Pro | x86-64 | Ok | Ok |
94
- | | Windows | Server 2012 R2 | x86-64 | | |
95
- | Apple | Mac OS X | Capitán (10.11.6) | x86-64 | Ok | Ok |
96
- | | Mac OS X | Sierra (10.12) | x86-64 | Ok | |