foreman_remote_execution 13.2.3 → 13.2.4
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 +4 -4
- data/app/helpers/remote_execution_helper.rb +4 -2
- data/app/views/template_invocations/show.html.erb +2 -2
- data/app/views/templates/script/run_downloaded_script.erb +15 -0
- data/lib/foreman_remote_execution/version.rb +1 -1
- data/locale/foreman_remote_execution.pot +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72be28962ab121fc6ffc3541a26a48690c0d55afb36dfc2ae99d6b4fa3535cb1
|
|
4
|
+
data.tar.gz: aeca3e51bee086c4d6b88ef77ed75663727ef44241e6f34d645f84da51f1715a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71f5695fb253fc5f90133161536dee9593b9b31105928c2c1d97eb0c3d8e3ad654a4cf550d29cd9bc113888507efc03b0cd7384155047965ceed00220c3b740a
|
|
7
|
+
data.tar.gz: d4dd8722f3ee5ae0c5091d96db0c0dbf68ef7e554fd8926bce6017b4cd974b634182c776166a023f94fd1b98af73478ac941316475ae51f360fab885c68217bb
|
|
@@ -73,12 +73,14 @@ module RemoteExecutionHelper
|
|
|
73
73
|
buttons << link_to(_('Rerun'), rerun_job_invocation_path(:id => job_invocation.id),
|
|
74
74
|
:class => 'btn btn-default',
|
|
75
75
|
:title => _('Rerun the job'))
|
|
76
|
-
end
|
|
77
|
-
if authorized_for(controller: :job_invocations, action: :create)
|
|
78
76
|
buttons << link_to(_('Rerun failed'), rerun_job_invocation_path(:id => job_invocation.id, :failed_only => 1),
|
|
79
77
|
:class => 'btn btn-default',
|
|
80
78
|
:disabled => job_invocation.failed_hosts.none?,
|
|
81
79
|
:title => _('Rerun on failed hosts'))
|
|
80
|
+
buttons << link_to(_('Rerun succeeded'), rerun_job_invocation_path(:id => job_invocation.id, :succeeded_only => 1),
|
|
81
|
+
:class => 'btn btn-default',
|
|
82
|
+
:disabled => job_invocation.succeeded_hosts.none?,
|
|
83
|
+
:title => _('Rerun on succeeded hosts'))
|
|
82
84
|
end
|
|
83
85
|
if authorized_for(:permission => :view_foreman_tasks, :auth_object => task, :authorizer => task_authorizer)
|
|
84
86
|
buttons << link_to(_('Job Task'), foreman_tasks_task_path(task),
|
|
@@ -44,13 +44,13 @@ end
|
|
|
44
44
|
<% if @error %>
|
|
45
45
|
<div class="line error"><%= @error %></div>
|
|
46
46
|
<% else %>
|
|
47
|
-
<%= link_to_function(_('Scroll to bottom'), '$("
|
|
47
|
+
<%= link_to_function(_('Scroll to bottom'), '$("#rails-app-content").scrollTop($("#rails-app-content").prop("scrollHeight"));', :class => 'pull-right scroll-link-bottom') %>
|
|
48
48
|
|
|
49
49
|
<div class="printable">
|
|
50
50
|
<%= render :partial => 'output_line_set', :collection => normalize_line_sets(@line_sets) %>
|
|
51
51
|
</div>
|
|
52
52
|
|
|
53
|
-
<%= link_to_function(_('Scroll to top'), '$("
|
|
53
|
+
<%= link_to_function(_('Scroll to top'), '$("#rails-app-content").scrollTop(0);', :class => 'pull-right scroll-link-top') %>
|
|
54
54
|
<% end %>
|
|
55
55
|
</div>
|
|
56
56
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
kind: job_template
|
|
3
|
+
name: Download and run a script
|
|
4
|
+
model: JobTemplate
|
|
5
|
+
job_category: Commands
|
|
6
|
+
description_format: "Download the script from %{url} and run it locally"
|
|
7
|
+
provider_type: script
|
|
8
|
+
template_inputs:
|
|
9
|
+
- name: url
|
|
10
|
+
description: URL of the script to download and execute
|
|
11
|
+
input_type: user
|
|
12
|
+
required: true
|
|
13
|
+
%>
|
|
14
|
+
|
|
15
|
+
set -o pipefail && curl -sS '<%= input("url") %>' | bash
|
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: foreman_remote_execution 1.0.0\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2024-07-
|
|
12
|
-
"PO-Revision-Date: 2024-07-
|
|
11
|
+
"POT-Creation-Date: 2024-07-17 17:11+0200\n"
|
|
12
|
+
"PO-Revision-Date: 2024-07-17 17:11+0200\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_remote_execution
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 13.2.
|
|
4
|
+
version: 13.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Foreman Remote Execution team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: deface
|
|
@@ -295,6 +295,7 @@ files:
|
|
|
295
295
|
- app/views/templates/script/puppet_install_modules_from_git.erb
|
|
296
296
|
- app/views/templates/script/puppet_run_once.erb
|
|
297
297
|
- app/views/templates/script/run_command.erb
|
|
298
|
+
- app/views/templates/script/run_downloaded_script.erb
|
|
298
299
|
- app/views/templates/script/service_action.erb
|
|
299
300
|
- config/routes.rb
|
|
300
301
|
- db/migrate/20150612121541_add_job_template_to_template.rb
|