sfrest 0.0.28 → 0.0.29
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/lib/sfrest/stage.rb +7 -2
- data/lib/sfrest/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c294e5ab1ba9e6a0a6be84b0c222ca5beae8326438db8c16dbee4a68d189599
|
|
4
|
+
data.tar.gz: ce5a155559c66f8b7831a7cb14964fc2ca4ca2465492bdfa479fdd22defc5bb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: edbdd8905bcc0ce249042f77e0e04a797ca852933adb4c9c546e83ad329f67711ce3ba2311650e44ea9a08b891f82b6f2e01e2052b3b9c1b65458f14e74d2d8a
|
|
7
|
+
data.tar.gz: 03e34c3a38581414209a546cdd0da6f6b9ee17c64f65539f6984f92e5ee7b4ae8d44dbe5552db5fbdce9a741607fdb4eec51c6f49c4bbad2a788246decdb70d1
|
data/lib/sfrest/stage.rb
CHANGED
|
@@ -30,21 +30,26 @@ module SFRest
|
|
|
30
30
|
# @param [Boolean] email_site_status send an email about the staging status of each site
|
|
31
31
|
# @param [Boolean] wipe_target_environment recreate the target stage wiping all data
|
|
32
32
|
# @param [synchronize_all_users] only stage the user accounts required for the related collections and groups
|
|
33
|
+
# @param [Array] Stacks Array of stack ids to wipe
|
|
33
34
|
#
|
|
34
35
|
# @return [Integer] Id of the staging task created.
|
|
36
|
+
# rubocop:disable Metrics/ParameterLists
|
|
35
37
|
def enhanced_stage(env: 'test',
|
|
36
38
|
sites: nil,
|
|
37
39
|
email_site_status: false,
|
|
38
40
|
wipe_target_environment: false,
|
|
39
|
-
synchronize_all_users: true
|
|
41
|
+
synchronize_all_users: true,
|
|
42
|
+
wipe_stacks: nil)
|
|
40
43
|
raise InvalidApiVersion, staging_versions unless staging_versions.include? 2
|
|
41
44
|
|
|
42
45
|
payload = { 'to_env' => env, 'sites' => sites,
|
|
43
46
|
'detailed_status' => email_site_status,
|
|
44
47
|
'wipe_target_environment' => wipe_target_environment,
|
|
45
|
-
'synchronize_all_users' => synchronize_all_users
|
|
48
|
+
'synchronize_all_users' => synchronize_all_users,
|
|
49
|
+
'wipe_stacks' => wipe_stacks }.to_json
|
|
46
50
|
@conn.post('/api/v2/stage', payload)
|
|
47
51
|
end
|
|
52
|
+
# rubocop:enable Metrics/ParameterLists
|
|
48
53
|
|
|
49
54
|
# Query for available staging environments
|
|
50
55
|
#
|
data/lib/sfrest/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sfrest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.29
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ACSF Engineering
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2019-08-27 00:00:00.000000000 Z
|
|
@@ -95,7 +95,7 @@ dependencies:
|
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '1.24'
|
|
97
97
|
description: Wrapper methods around the ACSF Rest API.
|
|
98
|
-
email:
|
|
98
|
+
email:
|
|
99
99
|
executables: []
|
|
100
100
|
extensions: []
|
|
101
101
|
extra_rdoc_files: []
|
|
@@ -125,7 +125,7 @@ homepage: http://github.com/acquia/sf-sdk-ruby
|
|
|
125
125
|
licenses:
|
|
126
126
|
- APACHE-2.0
|
|
127
127
|
metadata: {}
|
|
128
|
-
post_install_message:
|
|
128
|
+
post_install_message:
|
|
129
129
|
rdoc_options: []
|
|
130
130
|
require_paths:
|
|
131
131
|
- lib
|
|
@@ -140,8 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
140
|
- !ruby/object:Gem::Version
|
|
141
141
|
version: '0'
|
|
142
142
|
requirements: []
|
|
143
|
-
rubygems_version: 3.0.
|
|
144
|
-
signing_key:
|
|
143
|
+
rubygems_version: 3.0.3
|
|
144
|
+
signing_key:
|
|
145
145
|
specification_version: 4
|
|
146
146
|
summary: Acquia Site Factory Rest API.
|
|
147
147
|
test_files: []
|