marty 9.5.0 → 9.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e457dd04b51af2cefe76859a59f80b9f7a62b6184825597dab79777147666330
|
4
|
+
data.tar.gz: d891d5effa9cea8092d34c595503dbef827afe86098d25bc109ff58824deb89a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe9bd7f32d4fef940f91ee36c609054fc28d1cf55936c0fccdfad50f212ad8da8dbb771faefb31f94d84cecb633f24694cf2c7a52850180e03e264c7156713fe
|
7
|
+
data.tar.gz: 4ce7a00444928c18ddcdf56eeb6cb6c2a40fc5d0952e545fd3ddb7367fb64bcb838276cdc0bc5677a0daf49ac68b0ceed7a42447420c3d28699e9454afe40598
|
@@ -78,6 +78,19 @@ class Marty::MainAuthApp < Marty::AuthApp
|
|
78
78
|
]
|
79
79
|
end
|
80
80
|
|
81
|
+
def misc_menu
|
82
|
+
[
|
83
|
+
{
|
84
|
+
text: 'Miscellaneous Views',
|
85
|
+
icon_cls: 'fa fa-window-restore glyph',
|
86
|
+
disabled: !self.class.has_perm?(:admin),
|
87
|
+
menu: [
|
88
|
+
:show_env,
|
89
|
+
],
|
90
|
+
},
|
91
|
+
]
|
92
|
+
end
|
93
|
+
|
81
94
|
def system_menu
|
82
95
|
{
|
83
96
|
text: I18n.t('system'),
|
@@ -89,7 +102,12 @@ class Marty::MainAuthApp < Marty::AuthApp
|
|
89
102
|
:config_view,
|
90
103
|
:reload_scripts,
|
91
104
|
:load_seed,
|
92
|
-
] +
|
105
|
+
] +
|
106
|
+
background_jobs_menu +
|
107
|
+
notifications_menu +
|
108
|
+
log_menu +
|
109
|
+
api_menu +
|
110
|
+
misc_menu
|
93
111
|
}
|
94
112
|
end
|
95
113
|
|
@@ -366,6 +384,13 @@ class Marty::MainAuthApp < Marty::AuthApp
|
|
366
384
|
self.class.has_perm?(:dev))
|
367
385
|
end
|
368
386
|
|
387
|
+
action :show_env do |a|
|
388
|
+
a.text = 'Show Env Variables'
|
389
|
+
a.tooltip = 'Run `env` on host'
|
390
|
+
a.icon_cls = 'fa fa-terminal glphy'
|
391
|
+
a.disabled = !self.class.has_perm?(:admin)
|
392
|
+
end
|
393
|
+
|
369
394
|
######################################################################
|
370
395
|
|
371
396
|
def bg_command(subcmd)
|
@@ -408,6 +433,22 @@ class Marty::MainAuthApp < Marty::AuthApp
|
|
408
433
|
end
|
409
434
|
end
|
410
435
|
|
436
|
+
endpoint :show_env do |_|
|
437
|
+
html = `env`.
|
438
|
+
split(/\n/).
|
439
|
+
sort.
|
440
|
+
map do |e|
|
441
|
+
# mask passwords and expose first 4 digits of SECRET_KEY
|
442
|
+
e.
|
443
|
+
gsub(/PASSWORD=.*/, 'PASSWORD=********').
|
444
|
+
gsub(/SECRET_KEY_BASE=(.{4}).*/, 'SECRET_KEY_BASE=\1****')
|
445
|
+
end.
|
446
|
+
join('<br/>').
|
447
|
+
html_safe
|
448
|
+
|
449
|
+
client.show_detail html, 'Server Environment'
|
450
|
+
end
|
451
|
+
|
411
452
|
######################################################################
|
412
453
|
# Postings
|
413
454
|
|
data/lib/marty/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.5.
|
4
|
+
version: 9.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arman Bostani
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2020-02-
|
17
|
+
date: 2020-02-18 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: actioncable
|