Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68b783a

Browse files
committed
Platform: Define Vagrant version requirement and other optimizations.
1 parent e8512b0 commit 68b783a

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

VERSION.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
version: 4.8.0
2+
version: 4.8.1
33
major:
44
description: "Catapult uses Semantic Versioning. During a MAJOR increment, incompatable API changes are made which require a manual upgrade path. Please follow these directions:"
55
notice: "NEW MAJOR VERSION OF CATAPULT AVAILABLE"

catapult/catapult.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ def Command::format_repo_size(repo_size)
125125
end
126126

127127

128-
# define the minimum vagrant version
129-
Vagrant.require_version "> 1.4.0"
128+
# define the vagrant version
129+
# vagrant 2.3.5 moved to ruby 3, which is incompatible with some catapult-required vagrant plugins and catapult.rb
130+
Vagrant.require_version "> 1.4.0", "<= 2.3.4"
130131

131132

132133
# ensure the user is in the correct directory when running vagrant commands to prevent git from pulling in catapult upstream master into repositories
@@ -1774,7 +1775,7 @@ def Command::getSignatureKey(key, dateStamp, regionName, serviceName)
17741775
end
17751776
# type
17761777
if instance != nil
1777-
row.push(instance.at("item instanceType").text.ljust(12))
1778+
row.push(instance.at("item instanceType").text.slice!(0, 12).ljust(12))
17781779
# write type to secrets/configuration.yml
17791780
if !defined?(@configuration["environments"]["#{environment}"]["servers"]["#{server}"]["type"]) || (@configuration["environments"]["#{environment}"]["servers"]["#{server}"]["type"].nil?) || (@configuration["environments"]["#{environment}"]["servers"]["#{server}"]["type"] != instance.at("item instanceType").text)
17801781
if !defined?(@configuration["environments"]["#{environment}"]["servers"]["#{server}"]["type"])
@@ -1848,7 +1849,7 @@ def Command::getSignatureKey(key, dateStamp, regionName, serviceName)
18481849
end
18491850
# type
18501851
if droplet != nil
1851-
row.push("#{droplet["size"]["slug"]}".ljust(12))
1852+
row.push("#{droplet["size"]["slug"]}".slice!(0, 12).ljust(12))
18521853
# write slug to secrets/configuration.yml
18531854
if !defined?(@configuration["environments"]["#{environment}"]["servers"]["#{server}"]["slug"]) || (@configuration["environments"]["#{environment}"]["servers"]["#{server}"]["slug"].nil?) || (@configuration["environments"]["#{environment}"]["servers"]["#{server}"]["slug"] != droplet["size"]["slug"])
18541855
if !defined?(@configuration["environments"]["#{environment}"]["servers"]["#{server}"]["slug"])
@@ -2765,7 +2766,7 @@ def Command::getSignatureKey(key, dateStamp, regionName, serviceName)
27652766
environment = "#{environment}."
27662767
end
27672768
begin
2768-
def Command::http_response(uri_str, limit = 10)
2769+
def Command::http_response(uri_str, limit = 3)
27692770
if limit == 0
27702771
row.push("loop")
27712772
else
@@ -2807,7 +2808,7 @@ def Command::http_response(uri_str, limit = 10)
28072808
rescue Net::ReadTimeout
28082809
row.push("down".ljust(4).color(Colors::RED))
28092810
rescue OpenSSL::SSL::SSLError
2810-
row.push("err".ljust(4).color(Colors::RED))
2811+
row.push("cert".ljust(4).color(Colors::RED))
28112812
rescue Exception => ex
28122813
row.push("#{ex.class}".slice!(0, 4).ljust(4).color(Colors::RED))
28132814
end

provisioners/provisioners.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ software:
232232
repo: "https://git.drupal.org/project/drupal.git"
233233
branch: "7.x"
234234
database_config_file: "sites/default/settings.php"
235-
eol: "2021-11-1"
235+
eol: "2021-11-01"
236236
file_store_containers: ["sites/default/files"]
237237
file_stores: ["sites/default/files"]
238238
php_version: "7.1"
@@ -241,7 +241,7 @@ software:
241241
repo: "https://git.drupal.org/project/drupal.git"
242242
branch: "8.8.x"
243243
database_config_file: "sites/default/settings.php"
244-
eol: "2021-11-1"
244+
eol: "2021-11-01"
245245
file_store_containers: ["sites/default/files"]
246246
file_stores: ["sites/default/files"]
247247
php_version: "7.2"

0 commit comments

Comments
 (0)