pulpcore_client 3.18.5 → 3.18.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/pulpcore_client.gemspec +3 -3
- metadata +127 -128
- data/git_push.sh +0 -58
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d07081749972a5554b7ff7c28be9e8f37deeb7554f25b0c9a399312b422f782f
|
4
|
+
data.tar.gz: c7f5ecdf3c6a1dda2971dae9f3641ecca75bfd2cbd3314a9bdd043ac0b2caf91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4141690094eb6e8b5de41e805ad07da5681db3f3c5578b6010ef4c67c6963206dcd5db60f36a86330cbce60827aacfd8cf50cd28a3a23cf14c2dbd5c47c90935
|
7
|
+
data.tar.gz: 3fd8797c52eaddbd55e75c43edb5ec5949d080a004fe768fef21f9cacd13ed9c14fcc4a4b17bd397e6852a60e9a001859fc23c8be94bf9903937a235a336a7a6
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 3.18.
|
10
|
+
- Package version: 3.18.6
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulpcore_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulpcore_client-3.18.
|
27
|
+
gem install ./pulpcore_client-3.18.6.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulpcore_client-3.18.
|
30
|
+
(for development, run `gem install --dev ./pulpcore_client-3.18.6.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulpcore_client', '~> 3.18.
|
36
|
+
gem 'pulpcore_client', '~> 3.18.6'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
data/pulpcore_client.gemspec
CHANGED
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
23
23
|
s.email = ["pulp-list@redhat.com"]
|
24
|
-
s.homepage = "https://
|
24
|
+
s.homepage = "https://github.com/pulp/pulpcore"
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
26
26
|
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
27
|
-
s.license = '
|
27
|
+
s.license = 'GPLv2+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency 'faraday', '
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 0.17', '< 1.9.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
metadata
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulpcore_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.18.
|
4
|
+
version: 3.18.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.17'
|
20
20
|
- - "<"
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0.17'
|
30
30
|
- - "<"
|
@@ -229,7 +229,6 @@ files:
|
|
229
229
|
- docs/VersionResponse.md
|
230
230
|
- docs/WorkerResponse.md
|
231
231
|
- docs/WorkersApi.md
|
232
|
-
- git_push.sh
|
233
232
|
- lib/pulpcore_client.rb
|
234
233
|
- lib/pulpcore_client/api/access_policies_api.rb
|
235
234
|
- lib/pulpcore_client/api/artifacts_api.rb
|
@@ -537,9 +536,9 @@ files:
|
|
537
536
|
- spec/models/version_response_spec.rb
|
538
537
|
- spec/models/worker_response_spec.rb
|
539
538
|
- spec/spec_helper.rb
|
540
|
-
homepage: https://
|
539
|
+
homepage: https://github.com/pulp/pulpcore
|
541
540
|
licenses:
|
542
|
-
-
|
541
|
+
- GPLv2+
|
543
542
|
metadata: {}
|
544
543
|
post_install_message:
|
545
544
|
rdoc_options: []
|
@@ -561,155 +560,155 @@ signing_key:
|
|
561
560
|
specification_version: 4
|
562
561
|
summary: Pulp 3 API Ruby Gem
|
563
562
|
test_files:
|
564
|
-
- spec/api/groups_roles_api_spec.rb
|
565
|
-
- spec/api/users_api_spec.rb
|
566
|
-
- spec/api/access_policies_api_spec.rb
|
567
|
-
- spec/api/publications_api_spec.rb
|
568
|
-
- spec/api/task_schedules_api_spec.rb
|
569
563
|
- spec/api/contentguards_rbac_api_spec.rb
|
570
|
-
- spec/api/
|
571
|
-
- spec/api/
|
572
|
-
- spec/api/repositories_api_spec.rb
|
573
|
-
- spec/api/status_api_spec.rb
|
574
|
-
- spec/api/roles_api_spec.rb
|
575
|
-
- spec/api/uploads_api_spec.rb
|
576
|
-
- spec/api/contentguards_content_redirect_api_spec.rb
|
577
|
-
- spec/api/repositories_reclaim_space_api_spec.rb
|
578
|
-
- spec/api/importers_pulp_imports_api_spec.rb
|
579
|
-
- spec/api/groups_users_api_spec.rb
|
580
|
-
- spec/api/exporters_filesystem_exports_api_spec.rb
|
564
|
+
- spec/api/publications_api_spec.rb
|
565
|
+
- spec/api/access_policies_api_spec.rb
|
581
566
|
- spec/api/groups_model_permissions_api_spec.rb
|
582
|
-
- spec/api/
|
583
|
-
- spec/api/tasks_api_spec.rb
|
584
|
-
- spec/api/importers_pulp_import_check_api_spec.rb
|
585
|
-
- spec/api/orphans_cleanup_api_spec.rb
|
567
|
+
- spec/api/repair_api_spec.rb
|
586
568
|
- spec/api/exporters_filesystem_api_spec.rb
|
569
|
+
- spec/api/repositories_api_spec.rb
|
587
570
|
- spec/api/artifacts_api_spec.rb
|
588
571
|
- spec/api/groups_object_permissions_api_spec.rb
|
589
|
-
- spec/api/
|
590
|
-
- spec/api/users_roles_api_spec.rb
|
591
|
-
- spec/api/importers_pulp_api_spec.rb
|
592
|
-
- spec/api/exporters_pulp_exports_api_spec.rb
|
593
|
-
- spec/api/exporters_pulp_api_spec.rb
|
572
|
+
- spec/api/orphans_cleanup_api_spec.rb
|
594
573
|
- spec/api/content_api_spec.rb
|
595
|
-
- spec/api/
|
574
|
+
- spec/api/exporters_pulp_api_spec.rb
|
575
|
+
- spec/api/contentguards_content_redirect_api_spec.rb
|
596
576
|
- spec/api/groups_api_spec.rb
|
577
|
+
- spec/api/task_schedules_api_spec.rb
|
578
|
+
- spec/api/groups_roles_api_spec.rb
|
579
|
+
- spec/api/tasks_api_spec.rb
|
580
|
+
- spec/api/status_api_spec.rb
|
581
|
+
- spec/api/exporters_pulp_exports_api_spec.rb
|
582
|
+
- spec/api/importers_pulp_import_check_api_spec.rb
|
583
|
+
- spec/api/users_roles_api_spec.rb
|
597
584
|
- spec/api/contentguards_api_spec.rb
|
598
585
|
- spec/api/workers_api_spec.rb
|
586
|
+
- spec/api/users_api_spec.rb
|
587
|
+
- spec/api/importers_pulp_imports_api_spec.rb
|
588
|
+
- spec/api/signing_services_api_spec.rb
|
589
|
+
- spec/api/repositories_reclaim_space_api_spec.rb
|
590
|
+
- spec/api/roles_api_spec.rb
|
591
|
+
- spec/api/uploads_api_spec.rb
|
592
|
+
- spec/api/orphans_api_spec.rb
|
593
|
+
- spec/api/task_groups_api_spec.rb
|
594
|
+
- spec/api/repository_versions_api_spec.rb
|
595
|
+
- spec/api/groups_users_api_spec.rb
|
596
|
+
- spec/api/exporters_filesystem_exports_api_spec.rb
|
597
|
+
- spec/api/importers_pulp_api_spec.rb
|
599
598
|
- spec/api_client_spec.rb
|
600
599
|
- spec/configuration_spec.rb
|
601
|
-
- spec/models/task_group_operation_response_spec.rb
|
602
|
-
- spec/models/repository_version_response_spec.rb
|
603
|
-
- spec/models/my_permissions_response_spec.rb
|
604
|
-
- spec/models/storage_response_spec.rb
|
605
|
-
- spec/models/task_group_response_spec.rb
|
606
|
-
- spec/models/paginated_user_response_list_spec.rb
|
607
|
-
- spec/models/artifact_spec.rb
|
608
|
-
- spec/models/paginated_pulp_importer_response_list_spec.rb
|
609
|
-
- spec/models/patched_user_spec.rb
|
610
|
-
- spec/models/multiple_artifact_content_response_spec.rb
|
611
|
-
- spec/models/import_response_spec.rb
|
612
600
|
- spec/models/paginated_import_response_list_spec.rb
|
613
|
-
- spec/models/
|
614
|
-
- spec/models/user_role_spec.rb
|
615
|
-
- spec/models/patched_pulp_exporter_spec.rb
|
616
|
-
- spec/models/role_spec.rb
|
601
|
+
- spec/models/multiple_artifact_content_response_spec.rb
|
617
602
|
- spec/models/patched_rbac_content_guard_spec.rb
|
618
|
-
- spec/models/
|
603
|
+
- spec/models/patched_access_policy_spec.rb
|
604
|
+
- spec/models/paginated_role_response_list_spec.rb
|
605
|
+
- spec/models/user_role_response_spec.rb
|
606
|
+
- spec/models/pulp_importer_response_spec.rb
|
607
|
+
- spec/models/patched_pulp_importer_spec.rb
|
619
608
|
- spec/models/paginated_permission_response_list_spec.rb
|
620
|
-
- spec/models/pulp_export_spec.rb
|
621
609
|
- spec/models/patched_filesystem_exporter_spec.rb
|
622
|
-
- spec/models/
|
623
|
-
- spec/models/paginated_pulp_export_response_list_spec.rb
|
624
|
-
- spec/models/redis_connection_response_spec.rb
|
625
|
-
- spec/models/paginated_task_group_response_list_spec.rb
|
626
|
-
- spec/models/paginated_worker_response_list_spec.rb
|
627
|
-
- spec/models/user_group_response_spec.rb
|
628
|
-
- spec/models/group_spec.rb
|
629
|
-
- spec/models/states_enum_spec.rb
|
630
|
-
- spec/models/pulp_importer_spec.rb
|
631
|
-
- spec/models/paginated_group_user_response_list_spec.rb
|
632
|
-
- spec/models/filesystem_export_spec.rb
|
633
|
-
- spec/models/version_response_spec.rb
|
634
|
-
- spec/models/permission_response_spec.rb
|
610
|
+
- spec/models/role_spec.rb
|
635
611
|
- spec/models/user_group_spec.rb
|
636
|
-
- spec/models/
|
637
|
-
- spec/models/
|
638
|
-
- spec/models/reclaim_space_spec.rb
|
612
|
+
- spec/models/task_group_response_spec.rb
|
613
|
+
- spec/models/signing_service_response_spec.rb
|
639
614
|
- spec/models/async_operation_response_spec.rb
|
640
|
-
- spec/models/
|
641
|
-
- spec/models/paginated_task_response_list_spec.rb
|
642
|
-
- spec/models/publication_response_spec.rb
|
643
|
-
- spec/models/role_response_spec.rb
|
644
|
-
- spec/models/patched_pulp_importer_spec.rb
|
645
|
-
- spec/models/pulp_export_response_spec.rb
|
646
|
-
- spec/models/repository_response_spec.rb
|
647
|
-
- spec/models/database_connection_response_spec.rb
|
648
|
-
- spec/models/rbac_content_guard_spec.rb
|
649
|
-
- spec/models/minimal_task_response_spec.rb
|
650
|
-
- spec/models/user_response_spec.rb
|
651
|
-
- spec/models/patched_group_spec.rb
|
652
|
-
- spec/models/patched_task_cancel_spec.rb
|
653
|
-
- spec/models/rbac_content_guard_response_spec.rb
|
654
|
-
- spec/models/filesystem_exporter_response_spec.rb
|
655
|
-
- spec/models/paginated_pulp_exporter_response_list_spec.rb
|
656
|
-
- spec/models/task_response_spec.rb
|
657
|
-
- spec/models/patched_access_policy_spec.rb
|
658
|
-
- spec/models/group_user_spec.rb
|
659
|
-
- spec/models/nested_role_response_spec.rb
|
660
|
-
- spec/models/group_progress_report_response_spec.rb
|
661
|
-
- spec/models/filesystem_export_response_spec.rb
|
662
|
-
- spec/models/filesystem_exporter_spec.rb
|
663
|
-
- spec/models/paginated_repository_response_list_spec.rb
|
664
|
-
- spec/models/purge_spec.rb
|
665
|
-
- spec/models/paginated_filesystem_export_response_list_spec.rb
|
666
|
-
- spec/models/pulp_exporter_spec.rb
|
667
|
-
- spec/models/paginated_task_schedule_response_list_spec.rb
|
615
|
+
- spec/models/paginated_multiple_artifact_content_response_list_spec.rb
|
668
616
|
- spec/models/group_role_spec.rb
|
669
|
-
- spec/models/
|
670
|
-
- spec/models/
|
671
|
-
- spec/models/
|
672
|
-
- spec/models/
|
617
|
+
- spec/models/artifact_spec.rb
|
618
|
+
- spec/models/filesystem_exporter_response_spec.rb
|
619
|
+
- spec/models/rbac_content_guard_response_spec.rb
|
620
|
+
- spec/models/repair_spec.rb
|
673
621
|
- spec/models/content_redirect_content_guard_response_spec.rb
|
674
|
-
- spec/models/
|
675
|
-
- spec/models/
|
676
|
-
- spec/models/
|
622
|
+
- spec/models/filesystem_export_response_spec.rb
|
623
|
+
- spec/models/paginated_user_response_list_spec.rb
|
624
|
+
- spec/models/repository_version_response_spec.rb
|
625
|
+
- spec/models/paginated_publication_response_list_spec.rb
|
677
626
|
- spec/models/upload_spec.rb
|
678
|
-
- spec/models/
|
627
|
+
- spec/models/states_enum_spec.rb
|
628
|
+
- spec/models/permission_response_spec.rb
|
679
629
|
- spec/models/pulp_import_check_spec.rb
|
680
|
-
- spec/models/
|
681
|
-
- spec/models/
|
682
|
-
- spec/models/
|
630
|
+
- spec/models/group_role_response_spec.rb
|
631
|
+
- spec/models/paginated_pulp_export_response_list_spec.rb
|
632
|
+
- spec/models/status_response_spec.rb
|
633
|
+
- spec/models/patched_role_spec.rb
|
634
|
+
- spec/models/purge_spec.rb
|
683
635
|
- spec/models/upload_detail_response_spec.rb
|
684
|
-
- spec/models/
|
636
|
+
- spec/models/upload_chunk_spec.rb
|
637
|
+
- spec/models/object_roles_response_spec.rb
|
685
638
|
- spec/models/evaluation_response_spec.rb
|
686
|
-
- spec/models/
|
687
|
-
- spec/models/
|
688
|
-
- spec/models/
|
689
|
-
- spec/models/
|
690
|
-
- spec/models/
|
691
|
-
- spec/models/access_policy_spec.rb
|
639
|
+
- spec/models/my_permissions_response_spec.rb
|
640
|
+
- spec/models/group_progress_report_response_spec.rb
|
641
|
+
- spec/models/user_role_spec.rb
|
642
|
+
- spec/models/task_schedule_response_spec.rb
|
643
|
+
- spec/models/paginated_group_user_response_list_spec.rb
|
692
644
|
- spec/models/paginated_user_role_response_list_spec.rb
|
645
|
+
- spec/models/storage_response_spec.rb
|
646
|
+
- spec/models/publication_response_spec.rb
|
647
|
+
- spec/models/paginated_artifact_response_list_spec.rb
|
648
|
+
- spec/models/database_connection_response_spec.rb
|
649
|
+
- spec/models/paginated_worker_response_list_spec.rb
|
650
|
+
- spec/models/patched_pulp_exporter_spec.rb
|
651
|
+
- spec/models/progress_report_response_spec.rb
|
652
|
+
- spec/models/filesystem_export_spec.rb
|
653
|
+
- spec/models/paginated_upload_response_list_spec.rb
|
654
|
+
- spec/models/user_response_spec.rb
|
655
|
+
- spec/models/paginated_signing_service_response_list_spec.rb
|
656
|
+
- spec/models/content_guard_response_spec.rb
|
657
|
+
- spec/models/pulp_import_spec.rb
|
658
|
+
- spec/models/paginated_group_role_response_list_spec.rb
|
659
|
+
- spec/models/paginated_task_response_list_spec.rb
|
660
|
+
- spec/models/access_policy_response_spec.rb
|
661
|
+
- spec/models/worker_response_spec.rb
|
662
|
+
- spec/models/rbac_content_guard_spec.rb
|
663
|
+
- spec/models/content_redirect_content_guard_spec.rb
|
664
|
+
- spec/models/paginated_access_policy_response_list_spec.rb
|
665
|
+
- spec/models/task_group_operation_response_spec.rb
|
666
|
+
- spec/models/reclaim_space_spec.rb
|
667
|
+
- spec/models/artifact_response_spec.rb
|
668
|
+
- spec/models/group_user_spec.rb
|
693
669
|
- spec/models/upload_response_spec.rb
|
670
|
+
- spec/models/pulp_import_check_response_spec.rb
|
671
|
+
- spec/models/pulp_exporter_response_spec.rb
|
672
|
+
- spec/models/nested_role_spec.rb
|
673
|
+
- spec/models/content_app_status_response_spec.rb
|
674
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
675
|
+
- spec/models/repository_response_spec.rb
|
676
|
+
- spec/models/group_spec.rb
|
677
|
+
- spec/models/user_group_response_spec.rb
|
678
|
+
- spec/models/paginated_task_schedule_response_list_spec.rb
|
679
|
+
- spec/models/access_policy_spec.rb
|
680
|
+
- spec/models/nested_role_response_spec.rb
|
694
681
|
- spec/models/upload_chunk_response_spec.rb
|
695
|
-
- spec/models/
|
696
|
-
- spec/models/
|
697
|
-
- spec/models/group_response_spec.rb
|
682
|
+
- spec/models/minimal_task_response_spec.rb
|
683
|
+
- spec/models/pulp_importer_spec.rb
|
698
684
|
- spec/models/method_enum_spec.rb
|
699
|
-
- spec/models/user_spec.rb
|
700
|
-
- spec/models/paginated_group_role_response_list_spec.rb
|
701
|
-
- spec/models/pulp_import_check_response_spec.rb
|
702
|
-
- spec/models/pulp_import_spec.rb
|
703
|
-
- spec/models/paginated_publication_response_list_spec.rb
|
704
|
-
- spec/models/access_policy_response_spec.rb
|
705
685
|
- spec/models/group_user_response_spec.rb
|
706
|
-
- spec/models/
|
686
|
+
- spec/models/role_response_spec.rb
|
687
|
+
- spec/models/orphans_cleanup_spec.rb
|
688
|
+
- spec/models/paginated_pulp_exporter_response_list_spec.rb
|
689
|
+
- spec/models/task_response_spec.rb
|
690
|
+
- spec/models/paginated_pulp_importer_response_list_spec.rb
|
691
|
+
- spec/models/import_response_spec.rb
|
692
|
+
- spec/models/version_response_spec.rb
|
693
|
+
- spec/models/paginated_content_guard_response_list_spec.rb
|
694
|
+
- spec/models/user_spec.rb
|
695
|
+
- spec/models/patched_user_spec.rb
|
696
|
+
- spec/models/paginated_group_response_list_spec.rb
|
697
|
+
- spec/models/paginated_task_group_response_list_spec.rb
|
698
|
+
- spec/models/paginated_rbac_content_guard_response_list_spec.rb
|
699
|
+
- spec/models/pulp_export_spec.rb
|
700
|
+
- spec/models/paginated_filesystem_export_response_list_spec.rb
|
701
|
+
- spec/models/paginated_content_redirect_content_guard_response_list_spec.rb
|
702
|
+
- spec/models/patched_content_redirect_content_guard_spec.rb
|
703
|
+
- spec/models/pulp_export_response_spec.rb
|
704
|
+
- spec/models/group_response_spec.rb
|
707
705
|
- spec/models/upload_commit_spec.rb
|
708
|
-
- spec/models/
|
709
|
-
- spec/models/
|
710
|
-
- spec/models/
|
711
|
-
- spec/models/
|
706
|
+
- spec/models/redis_connection_response_spec.rb
|
707
|
+
- spec/models/content_summary_response_spec.rb
|
708
|
+
- spec/models/filesystem_exporter_spec.rb
|
709
|
+
- spec/models/patched_group_spec.rb
|
710
|
+
- spec/models/paginated_repository_response_list_spec.rb
|
711
|
+
- spec/models/pulp_exporter_spec.rb
|
712
712
|
- spec/models/paginated_filesystem_exporter_response_list_spec.rb
|
713
|
-
- spec/models/
|
714
|
-
- spec/models/pulp_importer_response_spec.rb
|
713
|
+
- spec/models/patched_task_cancel_spec.rb
|
715
714
|
- spec/spec_helper.rb
|
data/git_push.sh
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
-
#
|
4
|
-
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
-
|
6
|
-
git_user_id=$1
|
7
|
-
git_repo_id=$2
|
8
|
-
release_note=$3
|
9
|
-
git_host=$4
|
10
|
-
|
11
|
-
if [ "$git_host" = "" ]; then
|
12
|
-
git_host="github.com"
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
-
fi
|
15
|
-
|
16
|
-
if [ "$git_user_id" = "" ]; then
|
17
|
-
git_user_id="GIT_USER_ID"
|
18
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
-
fi
|
20
|
-
|
21
|
-
if [ "$git_repo_id" = "" ]; then
|
22
|
-
git_repo_id="GIT_REPO_ID"
|
23
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
-
fi
|
25
|
-
|
26
|
-
if [ "$release_note" = "" ]; then
|
27
|
-
release_note="Minor update"
|
28
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
-
fi
|
30
|
-
|
31
|
-
# Initialize the local directory as a Git repository
|
32
|
-
git init
|
33
|
-
|
34
|
-
# Adds the files in the local repository and stages them for commit.
|
35
|
-
git add .
|
36
|
-
|
37
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
-
git commit -m "$release_note"
|
39
|
-
|
40
|
-
# Sets the new remote
|
41
|
-
git_remote=`git remote`
|
42
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
-
|
44
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
-
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
-
else
|
48
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
-
fi
|
50
|
-
|
51
|
-
fi
|
52
|
-
|
53
|
-
git pull origin master
|
54
|
-
|
55
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
-
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
-
git push origin master 2>&1 | grep -v 'To https'
|
58
|
-
|