pulp_ostree_client 2.0.0a6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -7
- data/docs/ContentCommitsApi.md +8 -8
- data/docs/ContentConfigsApi.md +8 -8
- data/docs/ContentContentApi.md +138 -0
- data/docs/ContentObjectsApi.md +8 -8
- data/docs/ContentRefsApi.md +8 -8
- data/docs/ContentSummariesApi.md +8 -8
- data/docs/DistributionsOstreeApi.md +18 -12
- data/docs/OstreeOstreeContentResponse.md +25 -0
- data/docs/OstreeOstreeDistribution.md +1 -1
- data/docs/OstreeOstreeDistributionResponse.md +1 -1
- data/docs/OstreeOstreeRemote.md +1 -1
- data/docs/OstreeOstreeRemoteResponse.md +3 -1
- data/docs/OstreeOstreeRemoteResponseHiddenFields.md +19 -0
- data/docs/OstreeOstreeRepository.md +5 -3
- data/docs/OstreeOstreeRepositoryResponse.md +5 -3
- data/docs/PaginatedostreeOstreeContentResponseList.md +23 -0
- data/docs/PatchedostreeOstreeDistribution.md +1 -1
- data/docs/PatchedostreeOstreeRemote.md +1 -1
- data/docs/PatchedostreeOstreeRepository.md +5 -3
- data/docs/RemotesOstreeApi.md +12 -12
- data/docs/RepositoriesOstreeApi.md +32 -14
- data/docs/RepositoriesOstreeVersionsApi.md +12 -12
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/lib/pulp_ostree_client/api/content_commits_api.rb +13 -13
- data/lib/pulp_ostree_client/api/content_configs_api.rb +12 -12
- data/lib/pulp_ostree_client/api/content_content_api.rb +174 -0
- data/lib/pulp_ostree_client/api/content_objects_api.rb +13 -13
- data/lib/pulp_ostree_client/api/content_refs_api.rb +13 -13
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +12 -12
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +26 -17
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +17 -17
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +51 -24
- data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +17 -17
- data/lib/pulp_ostree_client/api_client.rb +1 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +260 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +4 -2
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +4 -2
- data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +4 -2
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +17 -3
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields.rb +215 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +21 -8
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +21 -8
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_content_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +4 -2
- data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +4 -2
- data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +21 -8
- data/lib/pulp_ostree_client/models/{ostree_repository_add_remove_content.rb → repository_add_remove_content.rb} +6 -6
- data/lib/pulp_ostree_client/version.rb +1 -1
- data/lib/pulp_ostree_client.rb +5 -1
- data/pulp_ostree_client.gemspec +3 -3
- data/spec/api/content_commits_api_spec.rb +4 -4
- data/spec/api/content_configs_api_spec.rb +4 -4
- data/spec/api/content_content_api_spec.rb +68 -0
- data/spec/api/content_objects_api_spec.rb +4 -4
- data/spec/api/content_refs_api_spec.rb +4 -4
- data/spec/api/content_summaries_api_spec.rb +4 -4
- data/spec/api/distributions_ostree_api_spec.rb +9 -6
- data/spec/api/remotes_ostree_api_spec.rb +6 -6
- data/spec/api/repositories_ostree_api_spec.rb +15 -6
- data/spec/api/repositories_ostree_versions_api_spec.rb +6 -6
- data/spec/models/ostree_ostree_content_response_spec.rb +65 -0
- data/spec/models/ostree_ostree_remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/ostree_ostree_remote_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_repository_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_repository_spec.rb +6 -0
- data/spec/models/paginatedostree_ostree_content_response_list_spec.rb +59 -0
- data/spec/models/patchedostree_ostree_repository_spec.rb +6 -0
- data/spec/models/{ostree_repository_add_remove_content_spec.rb → repository_add_remove_content_spec.rb} +6 -6
- metadata +60 -45
- data/docs/OstreeRepositoryAddRemoveContent.md +0 -21
- data/git_push.sh +0 -58
metadata
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_ostree_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-30 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
|
-
version:
|
19
|
+
version: 1.0.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: '2.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 1.0.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: '2.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- docs/AsyncOperationResponse.md
|
84
84
|
- docs/ContentCommitsApi.md
|
85
85
|
- docs/ContentConfigsApi.md
|
86
|
+
- docs/ContentContentApi.md
|
86
87
|
- docs/ContentObjectsApi.md
|
87
88
|
- docs/ContentRefsApi.md
|
88
89
|
- docs/ContentSummariesApi.md
|
@@ -92,19 +93,21 @@ files:
|
|
92
93
|
- docs/OstreeImportCommitsToRef.md
|
93
94
|
- docs/OstreeOstreeCommitResponse.md
|
94
95
|
- docs/OstreeOstreeConfigResponse.md
|
96
|
+
- docs/OstreeOstreeContentResponse.md
|
95
97
|
- docs/OstreeOstreeDistribution.md
|
96
98
|
- docs/OstreeOstreeDistributionResponse.md
|
97
99
|
- docs/OstreeOstreeObjectResponse.md
|
98
100
|
- docs/OstreeOstreeRefResponse.md
|
99
101
|
- docs/OstreeOstreeRemote.md
|
100
102
|
- docs/OstreeOstreeRemoteResponse.md
|
103
|
+
- docs/OstreeOstreeRemoteResponseHiddenFields.md
|
101
104
|
- docs/OstreeOstreeRepository.md
|
102
105
|
- docs/OstreeOstreeRepositoryResponse.md
|
103
106
|
- docs/OstreeOstreeSummaryResponse.md
|
104
|
-
- docs/OstreeRepositoryAddRemoveContent.md
|
105
107
|
- docs/PaginatedRepositoryVersionResponseList.md
|
106
108
|
- docs/PaginatedostreeOstreeCommitResponseList.md
|
107
109
|
- docs/PaginatedostreeOstreeConfigResponseList.md
|
110
|
+
- docs/PaginatedostreeOstreeContentResponseList.md
|
108
111
|
- docs/PaginatedostreeOstreeDistributionResponseList.md
|
109
112
|
- docs/PaginatedostreeOstreeObjectResponseList.md
|
110
113
|
- docs/PaginatedostreeOstreeRefResponseList.md
|
@@ -119,12 +122,13 @@ files:
|
|
119
122
|
- docs/Repair.md
|
120
123
|
- docs/RepositoriesOstreeApi.md
|
121
124
|
- docs/RepositoriesOstreeVersionsApi.md
|
125
|
+
- docs/RepositoryAddRemoveContent.md
|
122
126
|
- docs/RepositorySyncURL.md
|
123
127
|
- docs/RepositoryVersionResponse.md
|
124
|
-
- git_push.sh
|
125
128
|
- lib/pulp_ostree_client.rb
|
126
129
|
- lib/pulp_ostree_client/api/content_commits_api.rb
|
127
130
|
- lib/pulp_ostree_client/api/content_configs_api.rb
|
131
|
+
- lib/pulp_ostree_client/api/content_content_api.rb
|
128
132
|
- lib/pulp_ostree_client/api/content_objects_api.rb
|
129
133
|
- lib/pulp_ostree_client/api/content_refs_api.rb
|
130
134
|
- lib/pulp_ostree_client/api/content_summaries_api.rb
|
@@ -141,19 +145,21 @@ files:
|
|
141
145
|
- lib/pulp_ostree_client/models/ostree_import_commits_to_ref.rb
|
142
146
|
- lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb
|
143
147
|
- lib/pulp_ostree_client/models/ostree_ostree_config_response.rb
|
148
|
+
- lib/pulp_ostree_client/models/ostree_ostree_content_response.rb
|
144
149
|
- lib/pulp_ostree_client/models/ostree_ostree_distribution.rb
|
145
150
|
- lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb
|
146
151
|
- lib/pulp_ostree_client/models/ostree_ostree_object_response.rb
|
147
152
|
- lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb
|
148
153
|
- lib/pulp_ostree_client/models/ostree_ostree_remote.rb
|
149
154
|
- lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb
|
155
|
+
- lib/pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields.rb
|
150
156
|
- lib/pulp_ostree_client/models/ostree_ostree_repository.rb
|
151
157
|
- lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb
|
152
158
|
- lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb
|
153
|
-
- lib/pulp_ostree_client/models/ostree_repository_add_remove_content.rb
|
154
159
|
- lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb
|
155
160
|
- lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb
|
156
161
|
- lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb
|
162
|
+
- lib/pulp_ostree_client/models/paginatedostree_ostree_content_response_list.rb
|
157
163
|
- lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb
|
158
164
|
- lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb
|
159
165
|
- lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb
|
@@ -165,12 +171,14 @@ files:
|
|
165
171
|
- lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb
|
166
172
|
- lib/pulp_ostree_client/models/policy_enum.rb
|
167
173
|
- lib/pulp_ostree_client/models/repair.rb
|
174
|
+
- lib/pulp_ostree_client/models/repository_add_remove_content.rb
|
168
175
|
- lib/pulp_ostree_client/models/repository_sync_url.rb
|
169
176
|
- lib/pulp_ostree_client/models/repository_version_response.rb
|
170
177
|
- lib/pulp_ostree_client/version.rb
|
171
178
|
- pulp_ostree_client.gemspec
|
172
179
|
- spec/api/content_commits_api_spec.rb
|
173
180
|
- spec/api/content_configs_api_spec.rb
|
181
|
+
- spec/api/content_content_api_spec.rb
|
174
182
|
- spec/api/content_objects_api_spec.rb
|
175
183
|
- spec/api/content_refs_api_spec.rb
|
176
184
|
- spec/api/content_summaries_api_spec.rb
|
@@ -186,19 +194,21 @@ files:
|
|
186
194
|
- spec/models/ostree_import_commits_to_ref_spec.rb
|
187
195
|
- spec/models/ostree_ostree_commit_response_spec.rb
|
188
196
|
- spec/models/ostree_ostree_config_response_spec.rb
|
197
|
+
- spec/models/ostree_ostree_content_response_spec.rb
|
189
198
|
- spec/models/ostree_ostree_distribution_response_spec.rb
|
190
199
|
- spec/models/ostree_ostree_distribution_spec.rb
|
191
200
|
- spec/models/ostree_ostree_object_response_spec.rb
|
192
201
|
- spec/models/ostree_ostree_ref_response_spec.rb
|
202
|
+
- spec/models/ostree_ostree_remote_response_hidden_fields_spec.rb
|
193
203
|
- spec/models/ostree_ostree_remote_response_spec.rb
|
194
204
|
- spec/models/ostree_ostree_remote_spec.rb
|
195
205
|
- spec/models/ostree_ostree_repository_response_spec.rb
|
196
206
|
- spec/models/ostree_ostree_repository_spec.rb
|
197
207
|
- spec/models/ostree_ostree_summary_response_spec.rb
|
198
|
-
- spec/models/ostree_repository_add_remove_content_spec.rb
|
199
208
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
200
209
|
- spec/models/paginatedostree_ostree_commit_response_list_spec.rb
|
201
210
|
- spec/models/paginatedostree_ostree_config_response_list_spec.rb
|
211
|
+
- spec/models/paginatedostree_ostree_content_response_list_spec.rb
|
202
212
|
- spec/models/paginatedostree_ostree_distribution_response_list_spec.rb
|
203
213
|
- spec/models/paginatedostree_ostree_object_response_list_spec.rb
|
204
214
|
- spec/models/paginatedostree_ostree_ref_response_list_spec.rb
|
@@ -210,12 +220,13 @@ files:
|
|
210
220
|
- spec/models/patchedostree_ostree_repository_spec.rb
|
211
221
|
- spec/models/policy_enum_spec.rb
|
212
222
|
- spec/models/repair_spec.rb
|
223
|
+
- spec/models/repository_add_remove_content_spec.rb
|
213
224
|
- spec/models/repository_sync_url_spec.rb
|
214
225
|
- spec/models/repository_version_response_spec.rb
|
215
226
|
- spec/spec_helper.rb
|
216
|
-
homepage: https://
|
227
|
+
homepage: https://github.com/pulp/pulp_ostree
|
217
228
|
licenses:
|
218
|
-
-
|
229
|
+
- GPLv2+
|
219
230
|
metadata: {}
|
220
231
|
post_install_message:
|
221
232
|
rdoc_options: []
|
@@ -228,9 +239,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
228
239
|
version: '1.9'
|
229
240
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
241
|
requirements:
|
231
|
-
- - "
|
242
|
+
- - ">="
|
232
243
|
- !ruby/object:Gem::Version
|
233
|
-
version:
|
244
|
+
version: '0'
|
234
245
|
requirements: []
|
235
246
|
rubygems_version: 3.0.3.1
|
236
247
|
signing_key:
|
@@ -238,46 +249,50 @@ specification_version: 4
|
|
238
249
|
summary: Pulp 3 API Ruby Gem
|
239
250
|
test_files:
|
240
251
|
- spec/api/content_summaries_api_spec.rb
|
241
|
-
- spec/api/
|
242
|
-
- spec/api/
|
252
|
+
- spec/api/content_refs_api_spec.rb
|
253
|
+
- spec/api/distributions_ostree_api_spec.rb
|
243
254
|
- spec/api/content_commits_api_spec.rb
|
255
|
+
- spec/api/content_content_api_spec.rb
|
256
|
+
- spec/api/remotes_ostree_api_spec.rb
|
244
257
|
- spec/api/repositories_ostree_api_spec.rb
|
245
258
|
- spec/api/repositories_ostree_versions_api_spec.rb
|
246
|
-
- spec/api/content_refs_api_spec.rb
|
247
|
-
- spec/api/distributions_ostree_api_spec.rb
|
248
259
|
- spec/api/content_objects_api_spec.rb
|
260
|
+
- spec/api/content_configs_api_spec.rb
|
249
261
|
- spec/api_client_spec.rb
|
250
262
|
- spec/configuration_spec.rb
|
251
|
-
- spec/models/
|
252
|
-
- spec/models/repair_spec.rb
|
253
|
-
- spec/models/ostree_import_commits_to_ref_spec.rb
|
254
|
-
- spec/models/paginatedostree_ostree_repository_response_list_spec.rb
|
255
|
-
- spec/models/ostree_ostree_remote_response_spec.rb
|
256
|
-
- spec/models/ostree_ostree_summary_response_spec.rb
|
263
|
+
- spec/models/repository_version_response_spec.rb
|
257
264
|
- spec/models/paginatedostree_ostree_remote_response_list_spec.rb
|
258
|
-
- spec/models/
|
265
|
+
- spec/models/ostree_ostree_summary_response_spec.rb
|
266
|
+
- spec/models/repository_sync_url_spec.rb
|
259
267
|
- spec/models/ostree_ostree_distribution_response_spec.rb
|
260
|
-
- spec/models/
|
261
|
-
- spec/models/ostree_ostree_repository_response_spec.rb
|
262
|
-
- spec/models/content_summary_response_spec.rb
|
263
|
-
- spec/models/patchedostree_ostree_distribution_spec.rb
|
264
|
-
- spec/models/ostree_ostree_commit_response_spec.rb
|
265
|
-
- spec/models/policy_enum_spec.rb
|
266
|
-
- spec/models/ostree_ostree_distribution_spec.rb
|
267
|
-
- spec/models/ostree_repository_add_remove_content_spec.rb
|
268
|
-
- spec/models/paginatedostree_ostree_distribution_response_list_spec.rb
|
269
|
-
- spec/models/patchedostree_ostree_repository_spec.rb
|
270
|
-
- spec/models/patchedostree_ostree_remote_spec.rb
|
271
|
-
- spec/models/ostree_ostree_config_response_spec.rb
|
268
|
+
- spec/models/paginatedostree_ostree_config_response_list_spec.rb
|
272
269
|
- spec/models/ostree_ostree_repository_spec.rb
|
270
|
+
- spec/models/paginatedostree_ostree_repository_response_list_spec.rb
|
271
|
+
- spec/models/ostree_ostree_remote_response_spec.rb
|
272
|
+
- spec/models/paginatedostree_ostree_commit_response_list_spec.rb
|
273
|
+
- spec/models/ostree_ostree_config_response_spec.rb
|
274
|
+
- spec/models/paginatedostree_ostree_distribution_response_list_spec.rb
|
275
|
+
- spec/models/repository_add_remove_content_spec.rb
|
276
|
+
- spec/models/repair_spec.rb
|
277
|
+
- spec/models/ostree_ostree_commit_response_spec.rb
|
278
|
+
- spec/models/ostree_ostree_repository_response_spec.rb
|
273
279
|
- spec/models/async_operation_response_spec.rb
|
274
|
-
- spec/models/
|
275
|
-
- spec/models/paginatedostree_ostree_summary_response_list_spec.rb
|
276
|
-
- spec/models/paginatedostree_ostree_config_response_list_spec.rb
|
280
|
+
- spec/models/ostree_import_commits_to_ref_spec.rb
|
277
281
|
- spec/models/paginatedostree_ostree_object_response_list_spec.rb
|
278
|
-
- spec/models/
|
282
|
+
- spec/models/paginatedostree_ostree_content_response_list_spec.rb
|
283
|
+
- spec/models/policy_enum_spec.rb
|
284
|
+
- spec/models/paginatedostree_ostree_summary_response_list_spec.rb
|
279
285
|
- spec/models/ostree_ostree_remote_spec.rb
|
280
|
-
- spec/models/
|
286
|
+
- spec/models/ostree_ostree_remote_response_hidden_fields_spec.rb
|
287
|
+
- spec/models/ostree_ostree_object_response_spec.rb
|
288
|
+
- spec/models/patchedostree_ostree_distribution_spec.rb
|
289
|
+
- spec/models/patchedostree_ostree_remote_spec.rb
|
281
290
|
- spec/models/ostree_import_all_spec.rb
|
282
|
-
- spec/models/
|
291
|
+
- spec/models/content_summary_response_spec.rb
|
292
|
+
- spec/models/paginatedostree_ostree_ref_response_list_spec.rb
|
293
|
+
- spec/models/ostree_ostree_content_response_spec.rb
|
294
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
295
|
+
- spec/models/patchedostree_ostree_repository_spec.rb
|
296
|
+
- spec/models/ostree_ostree_distribution_spec.rb
|
297
|
+
- spec/models/ostree_ostree_ref_response_spec.rb
|
283
298
|
- spec/spec_helper.rb
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# PulpOstreeClient::OstreeRepositoryAddRemoveContent
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**add_content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
|
8
|
-
**remove_content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
|
9
|
-
**base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
|
10
|
-
|
11
|
-
## Code Sample
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'PulpOstreeClient'
|
15
|
-
|
16
|
-
instance = PulpOstreeClient::OstreeRepositoryAddRemoveContent.new(add_content_units: null,
|
17
|
-
remove_content_units: null,
|
18
|
-
base_version: null)
|
19
|
-
```
|
20
|
-
|
21
|
-
|
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
|
-
|