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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e86e40030829ea1e82f832a45615c93e2c77ff50ef2d2998f2ee933ef4526252
4
- data.tar.gz: c1e97626289a621bea70337993e65d05736ed839844cd0762f40d6b77ef91241
3
+ metadata.gz: 72be28962ab121fc6ffc3541a26a48690c0d55afb36dfc2ae99d6b4fa3535cb1
4
+ data.tar.gz: aeca3e51bee086c4d6b88ef77ed75663727ef44241e6f34d645f84da51f1715a
5
5
  SHA512:
6
- metadata.gz: 076f55dc40c9a0a82e4d69347128063c11c15299966b8ba5b96bdf59755e170473d58acdf32cb937b06aef6277c8fc9a43c842ba59fb250001c691f1cba95439
7
- data.tar.gz: def9eff7af10885ecbaa2e88f2773108a17ae1683301f0b5312fef964a640a61fabf96bd275c56928fcca2db6171a2fb6447b4e7043a329e8c9daae9446ea5cc
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'), '$("html, body").animate({ scrollTop: $(document).height() }, "slow");', :class => 'pull-right scroll-link-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'), '$("html, body").animate({ scrollTop: 0 }, "slow");', :class => 'pull-right scroll-link-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
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '13.2.3'.freeze
2
+ VERSION = '13.2.4'.freeze
3
3
  end
@@ -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-10 20:01+0200\n"
12
- "PO-Revision-Date: 2024-07-10 20:01+0200\n"
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.3
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-07-17 00:00:00.000000000 Z
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