foreman_remote_execution 14.0.0 → 14.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_remote_execution/locale/de/foreman_remote_execution.js +77 -77
  3. data/app/assets/javascripts/foreman_remote_execution/locale/en/foreman_remote_execution.js +2 -1667
  4. data/app/assets/javascripts/foreman_remote_execution/locale/en_GB/foreman_remote_execution.js +7 -7
  5. data/app/assets/javascripts/foreman_remote_execution/locale/es/foreman_remote_execution.js +33 -33
  6. data/app/assets/javascripts/foreman_remote_execution/locale/fr/foreman_remote_execution.js +131 -131
  7. data/app/assets/javascripts/foreman_remote_execution/locale/ja/foreman_remote_execution.js +131 -131
  8. data/app/assets/javascripts/foreman_remote_execution/locale/ka/foreman_remote_execution.js +38 -38
  9. data/app/assets/javascripts/foreman_remote_execution/locale/ko/foreman_remote_execution.js +16 -16
  10. data/app/assets/javascripts/foreman_remote_execution/locale/pt_BR/foreman_remote_execution.js +33 -33
  11. data/app/assets/javascripts/foreman_remote_execution/locale/ru/foreman_remote_execution.js +7 -7
  12. data/app/assets/javascripts/foreman_remote_execution/locale/zh_CN/foreman_remote_execution.js +134 -134
  13. data/app/assets/javascripts/foreman_remote_execution/locale/zh_TW/foreman_remote_execution.js +6 -6
  14. data/app/controllers/api/v2/job_invocations_controller.rb +34 -17
  15. data/app/helpers/job_invocations_helper.rb +1 -1
  16. data/app/helpers/remote_execution_helper.rb +2 -2
  17. data/app/lib/actions/remote_execution/proxy_action.rb +10 -5
  18. data/app/lib/actions/remote_execution/run_host_job.rb +1 -1
  19. data/app/lib/actions/remote_execution/template_invocation_progress_logging.rb +2 -3
  20. data/app/models/concerns/foreman_remote_execution/errors_flattener.rb +2 -2
  21. data/app/views/api/v2/job_invocations/hosts.json.rabl +15 -0
  22. data/app/views/template_invocations/show.html.erb +1 -1
  23. data/app/views/templates/script/package_action.erb +1 -1
  24. data/config/routes.rb +1 -0
  25. data/db/migrate/20240312133027_extend_template_invocation_events.rb +19 -0
  26. data/db/migrate/20240522093413_migrate_smart_proxy_ids_to_template_invocations.rb +3 -0
  27. data/lib/foreman_remote_execution/engine.rb +0 -4
  28. data/lib/foreman_remote_execution/version.rb +1 -1
  29. data/locale/Makefile +12 -2
  30. data/locale/de/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  31. data/locale/de/foreman_remote_execution.po +81 -80
  32. data/locale/en/foreman_remote_execution.po +0 -1675
  33. data/locale/en_GB/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  34. data/locale/en_GB/foreman_remote_execution.po +7 -7
  35. data/locale/es/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  36. data/locale/es/foreman_remote_execution.po +33 -33
  37. data/locale/fr/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  38. data/locale/fr/foreman_remote_execution.po +132 -132
  39. data/locale/ja/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  40. data/locale/ja/foreman_remote_execution.po +131 -131
  41. data/locale/ka/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  42. data/locale/ka/foreman_remote_execution.po +38 -38
  43. data/locale/ko/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  44. data/locale/ko/foreman_remote_execution.po +16 -16
  45. data/locale/pt_BR/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  46. data/locale/pt_BR/foreman_remote_execution.po +33 -33
  47. data/locale/ru/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  48. data/locale/ru/foreman_remote_execution.po +7 -7
  49. data/locale/zh_CN/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  50. data/locale/zh_CN/foreman_remote_execution.po +136 -134
  51. data/locale/zh_TW/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  52. data/locale/zh_TW/foreman_remote_execution.po +6 -6
  53. data/webpack/JobInvocationDetail/JobInvocationActions.js +1 -1
  54. data/webpack/JobInvocationDetail/JobInvocationConstants.js +84 -0
  55. data/webpack/JobInvocationDetail/JobInvocationDetail.scss +0 -1
  56. data/webpack/JobInvocationDetail/JobInvocationHostTable.js +210 -0
  57. data/webpack/JobInvocationDetail/JobInvocationSelectors.js +2 -2
  58. data/webpack/JobInvocationDetail/__tests__/MainInformation.test.js +5 -1
  59. data/webpack/JobInvocationDetail/__tests__/fixtures.js +9 -0
  60. data/webpack/JobInvocationDetail/index.js +56 -34
  61. data/webpack/__mocks__/foremanReact/components/HostDetails/DetailsCard/DefaultLoaderEmptyState.js +1 -2
  62. data/webpack/react_app/components/RecentJobsCard/JobStatusIcon.js +38 -7
  63. data/webpack/react_app/components/RecentJobsCard/constants.js +4 -0
  64. data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/HostStatus.test.js.snap +1 -1
  65. data/webpack/react_app/components/TargetingHosts/components/HostStatus.js +6 -6
  66. metadata +6 -95
  67. data/.babelrc.js +0 -3
  68. data/.eslintignore +0 -3
  69. data/.eslintrc +0 -13
  70. data/.github/workflows/js_ci.yml +0 -32
  71. data/.github/workflows/release.yml +0 -16
  72. data/.github/workflows/ruby_ci.yml +0 -19
  73. data/.gitignore +0 -18
  74. data/.packit.yaml +0 -45
  75. data/.prettierrc +0 -4
  76. data/.rubocop.yml +0 -105
  77. data/.rubocop_todo.yml +0 -516
  78. data/.tx/config +0 -10
  79. data/Gemfile +0 -5
  80. data/app/mailers/.gitkeep +0 -0
  81. data/app/views/dashboard/.gitkeep +0 -0
  82. data/foreman_remote_execution.gemspec +0 -33
  83. data/jsconfig.json +0 -8
  84. data/locale/action_names.rb +0 -2
  85. data/test/benchmark/run_hosts_job_benchmark.rb +0 -70
  86. data/test/benchmark/targeting_benchmark.rb +0 -31
  87. data/test/factories/foreman_remote_execution_factories.rb +0 -147
  88. data/test/functional/api/v2/foreign_input_sets_controller_test.rb +0 -58
  89. data/test/functional/api/v2/job_invocations_controller_test.rb +0 -446
  90. data/test/functional/api/v2/job_templates_controller_test.rb +0 -110
  91. data/test/functional/api/v2/registration_controller_test.rb +0 -73
  92. data/test/functional/api/v2/remote_execution_features_controller_test.rb +0 -34
  93. data/test/functional/api/v2/template_invocations_controller_test.rb +0 -33
  94. data/test/functional/cockpit_controller_test.rb +0 -16
  95. data/test/functional/job_invocations_controller_test.rb +0 -132
  96. data/test/functional/job_templates_controller_test.rb +0 -31
  97. data/test/functional/ui_job_wizard_controller_test.rb +0 -16
  98. data/test/graphql/mutations/job_invocations/create_test.rb +0 -58
  99. data/test/graphql/queries/job_invocation_query_test.rb +0 -31
  100. data/test/graphql/queries/job_invocations_query_test.rb +0 -35
  101. data/test/helpers/remote_execution_helper_test.rb +0 -46
  102. data/test/support/remote_execution_helper.rb +0 -5
  103. data/test/test_plugin_helper.rb +0 -9
  104. data/test/unit/actions/run_host_job_test.rb +0 -115
  105. data/test/unit/actions/run_hosts_job_test.rb +0 -214
  106. data/test/unit/api_params_test.rb +0 -25
  107. data/test/unit/concerns/foreman_tasks_cleaner_extensions_test.rb +0 -29
  108. data/test/unit/concerns/host_extensions_test.rb +0 -219
  109. data/test/unit/concerns/nic_extensions_test.rb +0 -9
  110. data/test/unit/execution_task_status_mapper_test.rb +0 -92
  111. data/test/unit/input_template_renderer_test.rb +0 -503
  112. data/test/unit/job_invocation_composer_test.rb +0 -974
  113. data/test/unit/job_invocation_report_template_test.rb +0 -60
  114. data/test/unit/job_invocation_test.rb +0 -232
  115. data/test/unit/job_template_effective_user_test.rb +0 -37
  116. data/test/unit/job_template_test.rb +0 -316
  117. data/test/unit/remote_execution_feature_test.rb +0 -86
  118. data/test/unit/remote_execution_provider_test.rb +0 -298
  119. data/test/unit/renderer_scope_input_test.rb +0 -49
  120. data/test/unit/targeting_test.rb +0 -206
  121. data/test/unit/template_invocation_input_value_test.rb +0 -38
@@ -8,38 +8,38 @@ const HostStatus = ({ status }) => {
8
8
  case 'cancelled':
9
9
  return (
10
10
  <div>
11
- <Icon type="pf" name="warning-triangle-o" /> {status}
11
+ <Icon type="pf" name="warning-triangle-o" /> {__('Cancelled')}
12
12
  </div>
13
13
  );
14
14
  case 'N/A':
15
15
  return (
16
16
  <div>
17
- <Icon type="fa" name="question" /> {status}
17
+ <Icon type="fa" name="question" /> {__('Awaiting start')}
18
18
  </div>
19
19
  );
20
20
  case 'running':
21
21
  return (
22
22
  <div>
23
- <Icon type="pf" name="running" /> {status}
23
+ <Icon type="pf" name="running" /> {__('Pending')}
24
24
  </div>
25
25
  );
26
26
  case 'planned':
27
27
  return (
28
28
  <div>
29
- <Icon type="pf" name="build" /> {status}
29
+ <Icon type="pf" name="build" /> {__('Scheduled')}
30
30
  </div>
31
31
  );
32
32
  case 'warning':
33
33
  case 'error':
34
34
  return (
35
35
  <div>
36
- <Icon type="pf" name="error-circle-o" /> {__('failed')}
36
+ <Icon type="pf" name="error-circle-o" /> {__('Failed')}
37
37
  </div>
38
38
  );
39
39
  case 'success':
40
40
  return (
41
41
  <div>
42
- <Icon type="pf" name="ok" /> {status}
42
+ <Icon type="pf" name="ok" /> {__('Succeeded')}
43
43
  </div>
44
44
  );
45
45
  default:
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: 14.0.0
4
+ version: 14.1.0
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-09-10 00:00:00.000000000 Z
11
+ date: 2024-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -96,19 +96,6 @@ extra_rdoc_files:
96
96
  - README.md
97
97
  - LICENSE
98
98
  files:
99
- - ".babelrc.js"
100
- - ".eslintignore"
101
- - ".eslintrc"
102
- - ".github/workflows/js_ci.yml"
103
- - ".github/workflows/release.yml"
104
- - ".github/workflows/ruby_ci.yml"
105
- - ".gitignore"
106
- - ".packit.yaml"
107
- - ".prettierrc"
108
- - ".rubocop.yml"
109
- - ".rubocop_todo.yml"
110
- - ".tx/config"
111
- - Gemfile
112
99
  - LICENSE
113
100
  - README.md
114
101
  - Rakefile
@@ -172,7 +159,6 @@ files:
172
159
  - app/lib/foreman_remote_execution/renderer/scope/input.rb
173
160
  - app/lib/foreman_remote_execution/renderer_methods.rb
174
161
  - app/lib/proxy_api/remote_execution_ssh.rb
175
- - app/mailers/.gitkeep
176
162
  - app/mailers/rex_job_mailer.rb
177
163
  - app/models/concerns/api/v2/hosts_controller_extensions.rb
178
164
  - app/models/concerns/api/v2/interfaces_controller_extensions.rb
@@ -224,6 +210,7 @@ files:
224
210
  - app/views/api/v2/interfaces/execution_flag.json.rabl
225
211
  - app/views/api/v2/job_invocations/base.json.rabl
226
212
  - app/views/api/v2/job_invocations/create.json.rabl
213
+ - app/views/api/v2/job_invocations/hosts.json.rabl
227
214
  - app/views/api/v2/job_invocations/index.json.rabl
228
215
  - app/views/api/v2/job_invocations/main.json.rabl
229
216
  - app/views/api/v2/job_invocations/show.json.rabl
@@ -242,7 +229,6 @@ files:
242
229
  - app/views/api/v2/subnets/remote_execution_proxies.json.rabl
243
230
  - app/views/api/v2/template_invocations/base.json.rabl
244
231
  - app/views/api/v2/template_invocations/template_invocations.json.rabl
245
- - app/views/dashboard/.gitkeep
246
232
  - app/views/dashboard/_latest-jobs.html.erb
247
233
  - app/views/job_invocation_task_groups/_job_invocation_task_groups.html.erb
248
234
  - app/views/job_invocations/_card_results.html.erb
@@ -352,6 +338,7 @@ files:
352
338
  - db/migrate/20220822155946_add_time_to_pickup_to_job_invocation.rb
353
339
  - db/migrate/20221129170145_redefine_template_invocation_events_index.rb
354
340
  - db/migrate/20230816154510_drop_time_span_from_job_invocations.rb
341
+ - db/migrate/20240312133027_extend_template_invocation_events.rb
355
342
  - db/migrate/20240522093412_add_smart_proxy_id_to_template_invocation.rb
356
343
  - db/migrate/20240522093413_migrate_smart_proxy_ids_to_template_invocations.rb
357
344
  - db/seeds.d/100-assign_features_with_templates.rb
@@ -365,15 +352,12 @@ files:
365
352
  - extra/cockpit/foreman-cockpit-session
366
353
  - extra/cockpit/foreman-cockpit.service
367
354
  - extra/cockpit/settings.yml.example
368
- - foreman_remote_execution.gemspec
369
- - jsconfig.json
370
355
  - lib/foreman_remote_execution.rb
371
356
  - lib/foreman_remote_execution/engine.rb
372
357
  - lib/foreman_remote_execution/tasks/explain_proxy_selection.rake
373
358
  - lib/foreman_remote_execution/version.rb
374
359
  - lib/tasks/foreman_remote_execution_tasks.rake
375
360
  - locale/Makefile
376
- - locale/action_names.rb
377
361
  - locale/de/LC_MESSAGES/foreman_remote_execution.mo
378
362
  - locale/de/foreman_remote_execution.po
379
363
  - locale/en/LC_MESSAGES/foreman_remote_execution.mo
@@ -401,46 +385,10 @@ files:
401
385
  - locale/zh_TW/LC_MESSAGES/foreman_remote_execution.mo
402
386
  - locale/zh_TW/foreman_remote_execution.po
403
387
  - package.json
404
- - test/benchmark/run_hosts_job_benchmark.rb
405
- - test/benchmark/targeting_benchmark.rb
406
- - test/factories/foreman_remote_execution_factories.rb
407
- - test/functional/api/v2/foreign_input_sets_controller_test.rb
408
- - test/functional/api/v2/job_invocations_controller_test.rb
409
- - test/functional/api/v2/job_templates_controller_test.rb
410
- - test/functional/api/v2/registration_controller_test.rb
411
- - test/functional/api/v2/remote_execution_features_controller_test.rb
412
- - test/functional/api/v2/template_invocations_controller_test.rb
413
- - test/functional/cockpit_controller_test.rb
414
- - test/functional/job_invocations_controller_test.rb
415
- - test/functional/job_templates_controller_test.rb
416
- - test/functional/ui_job_wizard_controller_test.rb
417
- - test/graphql/mutations/job_invocations/create_test.rb
418
- - test/graphql/queries/job_invocation_query_test.rb
419
- - test/graphql/queries/job_invocations_query_test.rb
420
- - test/helpers/remote_execution_helper_test.rb
421
- - test/support/remote_execution_helper.rb
422
- - test/test_plugin_helper.rb
423
- - test/unit/actions/run_host_job_test.rb
424
- - test/unit/actions/run_hosts_job_test.rb
425
- - test/unit/api_params_test.rb
426
- - test/unit/concerns/foreman_tasks_cleaner_extensions_test.rb
427
- - test/unit/concerns/host_extensions_test.rb
428
- - test/unit/concerns/nic_extensions_test.rb
429
- - test/unit/execution_task_status_mapper_test.rb
430
- - test/unit/input_template_renderer_test.rb
431
- - test/unit/job_invocation_composer_test.rb
432
- - test/unit/job_invocation_report_template_test.rb
433
- - test/unit/job_invocation_test.rb
434
- - test/unit/job_template_effective_user_test.rb
435
- - test/unit/job_template_test.rb
436
- - test/unit/remote_execution_feature_test.rb
437
- - test/unit/remote_execution_provider_test.rb
438
- - test/unit/renderer_scope_input_test.rb
439
- - test/unit/targeting_test.rb
440
- - test/unit/template_invocation_input_value_test.rb
441
388
  - webpack/JobInvocationDetail/JobInvocationActions.js
442
389
  - webpack/JobInvocationDetail/JobInvocationConstants.js
443
390
  - webpack/JobInvocationDetail/JobInvocationDetail.scss
391
+ - webpack/JobInvocationDetail/JobInvocationHostTable.js
444
392
  - webpack/JobInvocationDetail/JobInvocationOverview.js
445
393
  - webpack/JobInvocationDetail/JobInvocationSelectors.js
446
394
  - webpack/JobInvocationDetail/JobInvocationSystemStatusChart.js
@@ -616,41 +564,4 @@ signing_key:
616
564
  specification_version: 4
617
565
  summary: A plugin bringing remote execution to the Foreman, completing the config
618
566
  management functionality with remote management functionality.
619
- test_files:
620
- - test/benchmark/run_hosts_job_benchmark.rb
621
- - test/benchmark/targeting_benchmark.rb
622
- - test/factories/foreman_remote_execution_factories.rb
623
- - test/functional/api/v2/foreign_input_sets_controller_test.rb
624
- - test/functional/api/v2/job_invocations_controller_test.rb
625
- - test/functional/api/v2/job_templates_controller_test.rb
626
- - test/functional/api/v2/registration_controller_test.rb
627
- - test/functional/api/v2/remote_execution_features_controller_test.rb
628
- - test/functional/api/v2/template_invocations_controller_test.rb
629
- - test/functional/cockpit_controller_test.rb
630
- - test/functional/job_invocations_controller_test.rb
631
- - test/functional/job_templates_controller_test.rb
632
- - test/functional/ui_job_wizard_controller_test.rb
633
- - test/graphql/mutations/job_invocations/create_test.rb
634
- - test/graphql/queries/job_invocation_query_test.rb
635
- - test/graphql/queries/job_invocations_query_test.rb
636
- - test/helpers/remote_execution_helper_test.rb
637
- - test/support/remote_execution_helper.rb
638
- - test/test_plugin_helper.rb
639
- - test/unit/actions/run_host_job_test.rb
640
- - test/unit/actions/run_hosts_job_test.rb
641
- - test/unit/api_params_test.rb
642
- - test/unit/concerns/foreman_tasks_cleaner_extensions_test.rb
643
- - test/unit/concerns/host_extensions_test.rb
644
- - test/unit/concerns/nic_extensions_test.rb
645
- - test/unit/execution_task_status_mapper_test.rb
646
- - test/unit/input_template_renderer_test.rb
647
- - test/unit/job_invocation_composer_test.rb
648
- - test/unit/job_invocation_report_template_test.rb
649
- - test/unit/job_invocation_test.rb
650
- - test/unit/job_template_effective_user_test.rb
651
- - test/unit/job_template_test.rb
652
- - test/unit/remote_execution_feature_test.rb
653
- - test/unit/remote_execution_provider_test.rb
654
- - test/unit/renderer_scope_input_test.rb
655
- - test/unit/targeting_test.rb
656
- - test/unit/template_invocation_input_value_test.rb
567
+ test_files: []
data/.babelrc.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- presets: ['@theforeman/builder/babel'],
3
- };
data/.eslintignore DELETED
@@ -1,3 +0,0 @@
1
- # Ignore all files except webpack directory
2
- **/*.js
3
- !webpack/**/*.js
data/.eslintrc DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "plugins": [
3
- "@theforeman/foreman",
4
- "@theforeman/rules"
5
- ],
6
- "extends": [
7
- "plugin:@theforeman/foreman/core",
8
- "plugin:@theforeman/foreman/plugins"
9
- ],
10
- "rules":{
11
- "@theforeman/rules/require-ouiaid": ["error"]
12
- }
13
- }
@@ -1,32 +0,0 @@
1
- name: JS
2
- on:
3
- pull_request:
4
- paths:
5
- - 'webpack/**'
6
- - 'package.json'
7
- - '.github/workflows/js_ci.yml'
8
- jobs:
9
- test_js:
10
- runs-on: ubuntu-latest
11
- strategy:
12
- fail-fast: false
13
- matrix:
14
- node-version: [14]
15
- steps:
16
- - uses: actions/checkout@v2
17
- - name: Setup Node
18
- uses: actions/setup-node@v1
19
- with:
20
- node-version: ${{ matrix.node-version }}
21
- - name: Npm install
22
- run: |
23
- npm install
24
- - name: Run plugin linter
25
- run: |
26
- npm run lint
27
- - name: Run custom plugin linter
28
- run: |
29
- npm run lint:custom
30
- - name: Run plugin tests
31
- run: |
32
- npm run test
@@ -1,16 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- push:
5
- # Pattern matched against refs/tags
6
- tags:
7
- - '**'
8
-
9
- jobs:
10
- release:
11
- name: Release gem
12
- uses: theforeman/actions/.github/workflows/release-gem.yml@v0
13
- with:
14
- allowed_owner: theforeman
15
- secrets:
16
- api_key: ${{ secrets.RUBYGEM_API_KEY }}
@@ -1,19 +0,0 @@
1
- name: CI
2
-
3
- on: pull_request
4
-
5
- concurrency:
6
- group: ${{ github.ref_name }}-${{ github.workflow }}
7
- cancel-in-progress: true
8
-
9
- jobs:
10
- rubocop:
11
- name: Rubocop
12
- uses: theforeman/actions/.github/workflows/rubocop.yml@v0
13
-
14
- test:
15
- name: Ruby
16
- needs: rubocop
17
- uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0
18
- with:
19
- plugin: foreman_remote_execution
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- *.sw?
2
- .idea
3
- .bundle/
4
- log/*.log
5
- pkg/
6
- test/dummy/db/*.sqlite3
7
- test/dummy/log/*.log
8
- test/dummy/tmp/
9
- test/dummy/.sass-cache
10
- locale/*.mo
11
- locale/*/*.pox
12
- locale/*/*.edit.po
13
- locale/*/*.po.time_stamp
14
- Gemfile.lock
15
- node_modules/
16
- package-lock.json
17
- coverage/
18
- public/
data/.packit.yaml DELETED
@@ -1,45 +0,0 @@
1
- # See the documentation for more information:
2
- # https://packit.dev/docs/configuration/
3
-
4
- specfile_path: rubygem-foreman_remote_execution.spec
5
-
6
- # add or remove files that should be synced
7
- files_to_sync:
8
- - rubygem-foreman_remote_execution.spec
9
- - .packit.yaml
10
-
11
- # name in upstream package repository or registry (e.g. in PyPI)
12
- upstream_package_name: foreman_remote_execution
13
- # downstream (Fedora) RPM package name
14
- downstream_package_name: rubygem-foreman_remote_execution
15
-
16
- upstream_tag_template: v{version}
17
-
18
- actions:
19
- post-upstream-clone:
20
- - "wget https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/develop/packages/plugins/rubygem-foreman_remote_execution/rubygem-foreman_remote_execution.spec -O rubygem-foreman_remote_execution.spec"
21
- get-current-version:
22
- - ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("*.gemspec").first).version'
23
- create-archive:
24
- - gem build foreman_remote_execution.gemspec
25
- - bash -c "ls -1t ./foreman_remote_execution-*.gem | head -n 1"
26
-
27
- jobs:
28
- - job: copr_build
29
- trigger: pull_request
30
- targets:
31
- rhel-8:
32
- additional_modules: "foreman-devel:el8"
33
- additional_repos:
34
- - https://yum.theforeman.org/releases/nightly/el8/x86_64/
35
- - https://yum.theforeman.org/plugins/nightly/el8/x86_64/
36
- rhel-9:
37
- additional_modules: "foreman-devel:el9"
38
- additional_repos:
39
- - https://yum.theforeman.org/releases/nightly/el9/x86_64/
40
- - https://yum.theforeman.org/plugins/nightly/el9/x86_64/
41
- module_hotfixes: true
42
-
43
- srpm_build_deps:
44
- - wget
45
- - rubygems
data/.prettierrc DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "singleQuote": true,
3
- "trailingComma": "es5"
4
- }
data/.rubocop.yml DELETED
@@ -1,105 +0,0 @@
1
- inherit_gem:
2
- theforeman-rubocop:
3
- - lenient.yml
4
- - minitest.yml
5
-
6
- inherit_from: .rubocop_todo.yml
7
-
8
- inherit_mode:
9
- merge:
10
- - Exclude
11
-
12
- AllCops:
13
- TargetRubyVersion: 2.7
14
- TargetRailsVersion: 5.2
15
- Exclude:
16
- - 'node_modules/**/*'
17
- - 'vendor/bundle/**/*'
18
-
19
- Bundler/OrderedGems:
20
- Enabled: false
21
-
22
- Layout/DotPosition:
23
- Enabled: false
24
-
25
- Layout/HashAlignment:
26
- Enabled: false
27
-
28
- Layout/LineLength:
29
- Enabled: false
30
-
31
- Layout/ParameterAlignment:
32
- Enabled: false
33
-
34
- Layout/SpaceInsideHashLiteralBraces:
35
- Enabled: false
36
-
37
- Lint/BooleanSymbol:
38
- Enabled: false
39
-
40
- Metrics:
41
- Enabled: false
42
-
43
- Performance/Casecmp:
44
- Enabled: false
45
-
46
- Performance/RegexpMatch:
47
- Enabled: false
48
-
49
- Rails:
50
- Exclude:
51
- - 'lib/foreman_remote_execution_core/**/*'
52
- - 'lib/foreman_remote_execution_core.rb'
53
-
54
- Rails/Blank:
55
- UnlessPresent: false
56
-
57
- # Won't work with sqlite
58
- Rails/BulkChangeTable:
59
- Enabled: false
60
-
61
- Rails/RefuteMethods:
62
- Enabled: false
63
-
64
- # Don't prefer is_a? over kind_of?
65
- Style/ClassCheck:
66
- Enabled: false
67
-
68
- # Don't enforce certain methods, e.g. detect over find
69
- Style/CollectionMethods:
70
- Enabled: false
71
-
72
- Style/ConditionalAssignment:
73
- Enabled: false
74
-
75
- # Don't enforce frozen string literals
76
- Style/FrozenStringLiteralComment:
77
- Enabled: false
78
-
79
- # Support both, Ruby 1.9 hashmap and hash-rocket syntax
80
- Style/HashSyntax:
81
- Enabled: false
82
-
83
- Style/IfUnlessModifier:
84
- Enabled: false
85
-
86
- Style/InverseMethods:
87
- Enabled: false
88
-
89
- Style/MultipleComparison:
90
- Enabled: false
91
-
92
- Style/NumericPredicate:
93
- Enabled: false
94
-
95
- Style/ParallelAssignment:
96
- Enabled: false
97
-
98
- Style/ParenthesesAroundCondition:
99
- Enabled: false
100
-
101
- Style/PreferredHashMethods:
102
- Enabled: false
103
-
104
- Style/RaiseArgs:
105
- Enabled: false