machinery-tool 1.21.0 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/.git_revision +1 -1
  3. data/NEWS +8 -0
  4. data/html/index.html.haml +8 -7
  5. data/html/partials/changed_config_files.html.haml +1 -1
  6. data/html/partials/changed_managed_files.html.haml +1 -1
  7. data/html/partials/unmanaged_files.html.haml +2 -2
  8. data/lib/cli.rb +26 -4
  9. data/lib/diff_widget.rb +73 -0
  10. data/lib/dpkg_database.rb +16 -1
  11. data/lib/haml_helpers.rb +60 -0
  12. data/lib/kiwi_config.rb +7 -0
  13. data/lib/machinery.rb +3 -0
  14. data/lib/man_task.rb +3 -2
  15. data/lib/move_task.rb +1 -0
  16. data/lib/remote_system.rb +4 -0
  17. data/lib/server.rb +2 -105
  18. data/lib/static_html.rb +75 -0
  19. data/lib/system.rb +2 -1
  20. data/lib/system_description.rb +10 -0
  21. data/lib/version.rb +1 -1
  22. data/machinery-helper/version.go +1 -1
  23. data/man/generated/machinery.1.gz +0 -0
  24. data/manual/docs/README.md +8 -16
  25. data/manual/docs/docs.md +42 -4
  26. data/manual/docs/index.html +6 -2
  27. data/manual/docs/machinery-analyze.1.md +6 -10
  28. data/manual/docs/machinery-build.1.md +7 -11
  29. data/manual/docs/machinery-compare.1.md +5 -10
  30. data/manual/docs/machinery-config.1.md +4 -7
  31. data/manual/docs/machinery-copy.1.md +5 -10
  32. data/manual/docs/machinery-deploy.1.md +8 -12
  33. data/manual/docs/machinery-export-autoyast.1.md +10 -17
  34. data/manual/docs/machinery-export-html.1.md +32 -0
  35. data/manual/docs/machinery-export-kiwi.1.md +7 -12
  36. data/manual/docs/{machinery-inspect-docker.1.md → machinery-inspect-container.1.md} +10 -15
  37. data/manual/docs/machinery-inspect.1.md +10 -15
  38. data/manual/docs/machinery-list.1.md +4 -8
  39. data/manual/docs/machinery-man.1.md +4 -6
  40. data/manual/docs/machinery-move.1.md +4 -8
  41. data/manual/docs/machinery-remove.1.md +5 -10
  42. data/manual/docs/machinery-serve.1.md +5 -9
  43. data/manual/docs/machinery-show.1.md +7 -11
  44. data/manual/docs/machinery-upgrade-format.1.md +5 -9
  45. data/manual/docs/machinery-validate.1.md +4 -8
  46. data/manual/docs/machinery_main_general.1.md +33 -51
  47. data/manual/docs/machinery_main_scopes.1.md +13 -14
  48. data/manual/docs/{machinery_security_implications.1.md → machinery_main_security_implications.1.md} +15 -15
  49. data/manual/docs/machinery_main_usecases.1.md +2 -30
  50. data/manual/mkdocs.yml +9 -9
  51. data/manual/site/docs/index.html +71 -25
  52. data/manual/site/index.html +6 -2
  53. data/manual/site/machinery-analyze.1/index.html +34 -27
  54. data/manual/site/machinery-build.1/index.html +35 -28
  55. data/manual/site/machinery-compare.1/index.html +33 -26
  56. data/manual/site/machinery-config.1/index.html +32 -25
  57. data/manual/site/machinery-copy.1/index.html +33 -27
  58. data/manual/site/machinery-deploy.1/index.html +36 -29
  59. data/manual/site/machinery-export-autoyast.1/index.html +38 -32
  60. data/manual/site/machinery-export-html.1/index.html +175 -0
  61. data/manual/site/machinery-export-kiwi.1/index.html +35 -28
  62. data/manual/site/machinery-inspect-container.1/index.html +249 -0
  63. data/manual/site/machinery-inspect.1/index.html +38 -31
  64. data/manual/site/machinery-list.1/index.html +32 -25
  65. data/manual/site/machinery-man.1/index.html +32 -26
  66. data/manual/site/machinery-move.1/index.html +32 -25
  67. data/manual/site/machinery-remove.1/index.html +33 -26
  68. data/manual/site/machinery-serve.1/index.html +33 -26
  69. data/manual/site/machinery-show.1/index.html +35 -28
  70. data/manual/site/machinery-upgrade-format.1/index.html +33 -26
  71. data/manual/site/machinery-validate.1/index.html +32 -25
  72. data/manual/site/machinery_main_general.1/index.html +63 -70
  73. data/manual/site/machinery_main_scopes.1/index.html +41 -36
  74. data/manual/site/machinery_main_security_implications.1/index.html +228 -0
  75. data/manual/site/machinery_main_usecases.1/index.html +30 -48
  76. data/manual/site/mkdocs/search_index.json +246 -201
  77. data/manual/site/sitemap.xml +40 -30
  78. data/plugins/os/os_inspector.rb +1 -1
  79. data/plugins/packages/packages.yml +1 -1
  80. data/plugins/patterns/patterns.yml +2 -5
  81. data/plugins/repositories/repositories.yml +2 -2
  82. data/plugins/unmanaged_files/unmanaged_files.yml +3 -3
  83. data/plugins/unmanaged_files/unmanaged_files_renderer.rb +1 -1
  84. metadata +11 -5
  85. data/manual/docs/subcommand-template.1.md +0 -46
@@ -4,146 +4,156 @@
4
4
 
5
5
  <url>
6
6
  <loc>None/docs/</loc>
7
- <lastmod>2016-06-21</lastmod>
7
+ <lastmod>2016-10-06</lastmod>
8
8
  <changefreq>daily</changefreq>
9
9
  </url>
10
10
 
11
11
 
12
12
 
13
-
14
13
  <url>
15
14
  <loc>None/machinery_main_general.1/</loc>
16
- <lastmod>2016-06-21</lastmod>
15
+ <lastmod>2016-10-06</lastmod>
17
16
  <changefreq>daily</changefreq>
18
17
  </url>
19
-
18
+
19
+
20
+
20
21
  <url>
21
22
  <loc>None/machinery_main_scopes.1/</loc>
22
- <lastmod>2016-06-21</lastmod>
23
+ <lastmod>2016-10-06</lastmod>
23
24
  <changefreq>daily</changefreq>
24
25
  </url>
25
-
26
+
27
+
28
+
26
29
  <url>
27
30
  <loc>None/machinery_main_usecases.1/</loc>
28
- <lastmod>2016-06-21</lastmod>
31
+ <lastmod>2016-10-06</lastmod>
29
32
  <changefreq>daily</changefreq>
30
33
  </url>
31
-
34
+
35
+
36
+
32
37
  <url>
33
- <loc>None/machinery_security_implications.1/</loc>
34
- <lastmod>2016-06-21</lastmod>
38
+ <loc>None/machinery_main_security_implications.1/</loc>
39
+ <lastmod>2016-10-06</lastmod>
35
40
  <changefreq>daily</changefreq>
36
41
  </url>
37
-
38
42
 
39
43
 
40
44
 
41
45
 
42
46
  <url>
43
47
  <loc>None/machinery-analyze.1/</loc>
44
- <lastmod>2016-06-21</lastmod>
48
+ <lastmod>2016-10-06</lastmod>
45
49
  <changefreq>daily</changefreq>
46
50
  </url>
47
51
 
48
52
  <url>
49
53
  <loc>None/machinery-build.1/</loc>
50
- <lastmod>2016-06-21</lastmod>
54
+ <lastmod>2016-10-06</lastmod>
51
55
  <changefreq>daily</changefreq>
52
56
  </url>
53
57
 
54
58
  <url>
55
59
  <loc>None/machinery-compare.1/</loc>
56
- <lastmod>2016-06-21</lastmod>
60
+ <lastmod>2016-10-06</lastmod>
57
61
  <changefreq>daily</changefreq>
58
62
  </url>
59
63
 
60
64
  <url>
61
65
  <loc>None/machinery-config.1/</loc>
62
- <lastmod>2016-06-21</lastmod>
66
+ <lastmod>2016-10-06</lastmod>
63
67
  <changefreq>daily</changefreq>
64
68
  </url>
65
69
 
66
70
  <url>
67
71
  <loc>None/machinery-copy.1/</loc>
68
- <lastmod>2016-06-21</lastmod>
72
+ <lastmod>2016-10-06</lastmod>
69
73
  <changefreq>daily</changefreq>
70
74
  </url>
71
75
 
72
76
  <url>
73
77
  <loc>None/machinery-deploy.1/</loc>
74
- <lastmod>2016-06-21</lastmod>
78
+ <lastmod>2016-10-06</lastmod>
75
79
  <changefreq>daily</changefreq>
76
80
  </url>
77
81
 
78
82
  <url>
79
83
  <loc>None/machinery-export-autoyast.1/</loc>
80
- <lastmod>2016-06-21</lastmod>
84
+ <lastmod>2016-10-06</lastmod>
81
85
  <changefreq>daily</changefreq>
82
86
  </url>
83
87
 
84
88
  <url>
85
89
  <loc>None/machinery-export-kiwi.1/</loc>
86
- <lastmod>2016-06-21</lastmod>
90
+ <lastmod>2016-10-06</lastmod>
91
+ <changefreq>daily</changefreq>
92
+ </url>
93
+
94
+ <url>
95
+ <loc>None/machinery-export-html.1/</loc>
96
+ <lastmod>2016-10-06</lastmod>
87
97
  <changefreq>daily</changefreq>
88
98
  </url>
89
99
 
90
100
  <url>
91
101
  <loc>None/machinery-inspect.1/</loc>
92
- <lastmod>2016-06-21</lastmod>
102
+ <lastmod>2016-10-06</lastmod>
93
103
  <changefreq>daily</changefreq>
94
104
  </url>
95
105
 
96
106
  <url>
97
- <loc>None/machinery-inspect-docker.1/</loc>
98
- <lastmod>2016-06-21</lastmod>
107
+ <loc>None/machinery-inspect-container.1/</loc>
108
+ <lastmod>2016-10-06</lastmod>
99
109
  <changefreq>daily</changefreq>
100
110
  </url>
101
111
 
102
112
  <url>
103
113
  <loc>None/machinery-list.1/</loc>
104
- <lastmod>2016-06-21</lastmod>
114
+ <lastmod>2016-10-06</lastmod>
105
115
  <changefreq>daily</changefreq>
106
116
  </url>
107
117
 
108
118
  <url>
109
119
  <loc>None/machinery-man.1/</loc>
110
- <lastmod>2016-06-21</lastmod>
120
+ <lastmod>2016-10-06</lastmod>
111
121
  <changefreq>daily</changefreq>
112
122
  </url>
113
123
 
114
124
  <url>
115
125
  <loc>None/machinery-move.1/</loc>
116
- <lastmod>2016-06-21</lastmod>
126
+ <lastmod>2016-10-06</lastmod>
117
127
  <changefreq>daily</changefreq>
118
128
  </url>
119
129
 
120
130
  <url>
121
131
  <loc>None/machinery-remove.1/</loc>
122
- <lastmod>2016-06-21</lastmod>
132
+ <lastmod>2016-10-06</lastmod>
123
133
  <changefreq>daily</changefreq>
124
134
  </url>
125
135
 
126
136
  <url>
127
137
  <loc>None/machinery-serve.1/</loc>
128
- <lastmod>2016-06-21</lastmod>
138
+ <lastmod>2016-10-06</lastmod>
129
139
  <changefreq>daily</changefreq>
130
140
  </url>
131
141
 
132
142
  <url>
133
143
  <loc>None/machinery-show.1/</loc>
134
- <lastmod>2016-06-21</lastmod>
144
+ <lastmod>2016-10-06</lastmod>
135
145
  <changefreq>daily</changefreq>
136
146
  </url>
137
147
 
138
148
  <url>
139
149
  <loc>None/machinery-upgrade-format.1/</loc>
140
- <lastmod>2016-06-21</lastmod>
150
+ <lastmod>2016-10-06</lastmod>
141
151
  <changefreq>daily</changefreq>
142
152
  </url>
143
153
 
144
154
  <url>
145
155
  <loc>None/machinery-validate.1/</loc>
146
- <lastmod>2016-06-21</lastmod>
156
+ <lastmod>2016-10-06</lastmod>
147
157
  <changefreq>daily</changefreq>
148
158
  </url>
149
159
 
@@ -114,7 +114,7 @@ class OsInspector < Inspector
114
114
 
115
115
  # since Tumbleweed does no longer store the version number in the
116
116
  # "version" property, we've to read from the "version_id" property
117
- if os.version == "Tumbleweed"
117
+ if os.version == "Tumbleweed" || os.name == "openSUSE Tumbleweed"
118
118
  os.version = result["version_id"]
119
119
  end
120
120
 
@@ -2,5 +2,5 @@
2
2
  :name: Packages
3
3
  :initials: pk
4
4
  :description: |
5
- Contains information on all installed RPM packages installed on the
5
+ Contains information on all installed packages installed on the
6
6
  inspected system.
@@ -4,8 +4,5 @@
4
4
  :description: |
5
5
  Contains all patterns or tasks installed on the inspected system. A pattern is a
6
6
  collection of software packages, similar to the idea of tasks on Debian/Ubuntu-
7
- like systems.
8
- The meaning of software patterns depends on the package manager of the
9
- distribution. Therefore, the pattern scope on SUSE based systems uses the
10
- `zypper` command to obtain the information about installed pattern names, whereas
11
- on Debian based systems the `tasksel` tool is necessary to list installed tasks.
7
+ like systems. The meaning of software patterns depends on the package manager of the
8
+ distribution.
@@ -4,8 +4,8 @@
4
4
  :description: |
5
5
  Contains all information about software repositories configured on the
6
6
  inspected system. The information about repositories depends on the package
7
- manager of the distribution. Thus on SUSE-based systems the `zypper` command
8
- is used. Machinery collects the following information from each configured repository:
7
+ manager of the distribution. Machinery collects the following information
8
+ from each configured repository:
9
9
 
10
10
  - The alias name of the repository.
11
11
 
@@ -2,13 +2,13 @@
2
2
  :name: Unmanaged Files
3
3
  :initials: uf
4
4
  :description: |
5
- Contains the names and contents of all files which are not part of any RPM
6
- package. The list of unmanaged files contains only plain files and
5
+ Contains the names and contents of all files which are not part of any package.
6
+ The list of unmanaged files contains only plain files and
7
7
  directories. Special files like device nodes, named pipes and Unix domain
8
8
  sockets are ignored. The directories `/tmp`, `/var/tmp`, `/.snapshots/`,
9
9
  `/var/run` and special mounts like procfs and sysfs are ignored, too.
10
10
  If a directory is in this list, no file or directory below it belongs to a
11
- RPM package.
11
+ package.
12
12
 
13
13
  Meta data information of unmanaged files is only available if the files were
14
14
  extracted during inspection.
@@ -37,7 +37,7 @@ class UnmanagedFilesRenderer < Renderer
37
37
  puts "Size: #{number_to_human_size(p.size)}" if p.size
38
38
  if p.files && p.dirs
39
39
  puts "Files: #{p.files}"
40
- puts "Subdirectories: #{p.dirs}"
40
+ puts "Directories: #{p.dirs}"
41
41
  end
42
42
  if p.file_objects
43
43
  puts "File Objects: #{p.file_objects}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: machinery-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SUSE
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-21 00:00:00.000000000 Z
11
+ date: 2016-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cheetah
@@ -330,6 +330,7 @@ files:
330
330
  - lib/copy_task.rb
331
331
  - lib/current_user.rb
332
332
  - lib/deploy_task.rb
333
+ - lib/diff_widget.rb
333
334
  - lib/docker_system.rb
334
335
  - lib/dpkg_database.rb
335
336
  - lib/element_filter.rb
@@ -341,6 +342,7 @@ files:
341
342
  - lib/file_validator.rb
342
343
  - lib/filter.rb
343
344
  - lib/filter_option_parser.rb
345
+ - lib/haml_helpers.rb
344
346
  - lib/helper.rb
345
347
  - lib/hint.rb
346
348
  - lib/html.rb
@@ -376,6 +378,7 @@ files:
376
378
  - lib/serve_html_task.rb
377
379
  - lib/server.rb
378
380
  - lib/show_task.rb
381
+ - lib/static_html.rb
379
382
  - lib/system.rb
380
383
  - lib/system_description.rb
381
384
  - lib/system_description_memory_store.rb
@@ -460,8 +463,9 @@ files:
460
463
  - manual/docs/machinery-copy.1.md
461
464
  - manual/docs/machinery-deploy.1.md
462
465
  - manual/docs/machinery-export-autoyast.1.md
466
+ - manual/docs/machinery-export-html.1.md
463
467
  - manual/docs/machinery-export-kiwi.1.md
464
- - manual/docs/machinery-inspect-docker.1.md
468
+ - manual/docs/machinery-inspect-container.1.md
465
469
  - manual/docs/machinery-inspect.1.md
466
470
  - manual/docs/machinery-list.1.md
467
471
  - manual/docs/machinery-man.1.md
@@ -474,9 +478,8 @@ files:
474
478
  - manual/docs/machinery.ymp
475
479
  - manual/docs/machinery_main_general.1.md
476
480
  - manual/docs/machinery_main_scopes.1.md
481
+ - manual/docs/machinery_main_security_implications.1.md
477
482
  - manual/docs/machinery_main_usecases.1.md
478
- - manual/docs/machinery_security_implications.1.md
479
- - manual/docs/subcommand-template.1.md
480
483
  - manual/docs/wheels.png
481
484
  - manual/mkdocs.yml
482
485
  - manual/site/CNAME
@@ -536,7 +539,9 @@ files:
536
539
  - manual/site/machinery-copy.1/index.html
537
540
  - manual/site/machinery-deploy.1/index.html
538
541
  - manual/site/machinery-export-autoyast.1/index.html
542
+ - manual/site/machinery-export-html.1/index.html
539
543
  - manual/site/machinery-export-kiwi.1/index.html
544
+ - manual/site/machinery-inspect-container.1/index.html
540
545
  - manual/site/machinery-inspect-docker.1/index.html
541
546
  - manual/site/machinery-inspect.1/index.html
542
547
  - manual/site/machinery-list.1/index.html
@@ -550,6 +555,7 @@ files:
550
555
  - manual/site/machinery.ymp
551
556
  - manual/site/machinery_main_general.1/index.html
552
557
  - manual/site/machinery_main_scopes.1/index.html
558
+ - manual/site/machinery_main_security_implications.1/index.html
553
559
  - manual/site/machinery_main_usecases.1/index.html
554
560
  - manual/site/machinery_security_implications.1/index.html
555
561
  - manual/site/mkdocs/js/lunr-0.5.7.min.js
@@ -1,46 +0,0 @@
1
-
2
- ## subcommand — Do Foo Stuff
3
-
4
- ### SYNOPSIS
5
-
6
- `machinery subcommand` ARGUMENT [options]
7
-
8
- `machinery` help [subcommand]
9
-
10
-
11
- ### DESCRIPTION
12
-
13
- The **machinery subcommand** command does awesome stuff.
14
-
15
-
16
- ### ARGUMENTS
17
-
18
- * ARGUMENT (required)
19
- Describe ARGUMENT here.
20
-
21
-
22
- ### OPTIONS
23
-
24
- * `--help`:
25
- Print help of subcommand.
26
-
27
-
28
- ### PREREQUISITES
29
-
30
- <!--- If the command assumes a certain enviroment or there are other
31
- requirements, describe them here --->
32
-
33
-
34
- ### EXAMPLES
35
-
36
- Do something:
37
-
38
- `machinery subcommand`
39
-
40
- <!--- add also test case for machinery subcommand -->
41
-
42
-
43
- ### DEFICIENCIES
44
- <!--- In most cases, this section can be removed -->
45
- No known deficiencies
46
-