et_full_system 8.1.0.pre.rc1 → 8.1.0.pre.rc2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16b38008980e266ef8a4739a6f077232a8fb89a0d017861706890b4eb637717f
4
- data.tar.gz: a16617a9c8f0d0bacd1265258a96075fc67074dacfb49ac74836189fb4824a51
3
+ metadata.gz: fa2a567c7fdaac726c60d3d4fbab9ce83068d73f4be685ff4b0d58f017653118
4
+ data.tar.gz: 20c116d6789fa576534588dc4c51a10c8ca17dd7594cf07ce43bd63a1735c2b9
5
5
  SHA512:
6
- metadata.gz: 453d6ee7cc9d71e9caf16ed66989b3658abff3b547f4f3d5fd68c5a3822ba0daefc2a161551e9b66396e0e82840a8dd29e82385a60bb43e76bfdf43a9d03a510
7
- data.tar.gz: 7855a8dc90c98aaf8000f0ddc62c94f7b43e781314f1b262e9c70bdd693bb5a7058b31029ed4ed3ca5c4fbb923bd6630ac1565e4db94c3d70542a0f9d2a2cd59
6
+ metadata.gz: 371b17c780a8dd4da1a717f70d36fdf3b5ed78f6b0c460074652ae99f5412c81c15ea4bd2c6f1727249425687b80003b73d175bbeb98488c7c445b1da375c2e1
7
+ data.tar.gz: c124a3e02fbb78f8421004371ca128e28e571ae6d60392b7993c41c2fc74ffc6141f969c661860b76483de767e06a7f5d6b769a839c977cf3aac30432604506b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_full_system (8.1.0.pre.rc1)
4
+ et_full_system (8.1.0.pre.rc2)
5
5
  azure-storage (~> 0.15.0.preview)
6
6
  dotenv (~> 2.7, >= 2.7.2)
7
7
  et_fake_ccd (~> 1.0)
@@ -143,6 +143,7 @@ module EtFullSystem
143
143
  def setup
144
144
  setup_depencencies
145
145
  install_bundler if rvm_installed?
146
+ install_rvm if options.in_docker_compose? && rvm_required?
146
147
  setup_ruby_versions
147
148
  setup_services
148
149
  end
@@ -168,12 +169,8 @@ module EtFullSystem
168
169
 
169
170
  desc "setup_ruby_versions", "Install all ruby versions required"
170
171
  def setup_ruby_versions
171
- versions = Dir.glob(File.join(PROJECT_PATH, 'systems', '*', '.ruby-version')).map do |version_file|
172
- File.read(version_file).split("\n").first.gsub(/\Aruby-/, '')
173
- end.uniq - [RUBY_VERSION]
174
172
 
175
- install_rvm
176
- versions.each do |version|
173
+ additional_ruby_versions.each do |version|
177
174
  puts "------------------------------------------------ SETTING UP ruby #{version} ---------------------------------------------------"
178
175
  cmd = "bash --login -c \"rvm install #{version}\""
179
176
  puts cmd
@@ -511,8 +508,6 @@ module EtFullSystem
511
508
  def install_rvm
512
509
  return if rvm_installed?
513
510
 
514
- raise "Refusing to install rvm locally - please install yourself" if !in_docker_compose?
515
-
516
511
  puts "------------------------------------------------ Installing rvm ---------------------------------------------------"
517
512
  cmds = ["gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB"]
518
513
  cmds << "bash --login -c \"cd #{PROJECT_PATH} && curl -sSL https://get.rvm.io | bash -s stable\""
@@ -523,6 +518,16 @@ module EtFullSystem
523
518
  end
524
519
  end
525
520
 
521
+ def additional_ruby_versions
522
+ @additional_ruby_versions = Dir.glob(File.join(PROJECT_PATH, 'systems', '*', '.ruby-version')).map do |version_file|
523
+ File.read(version_file).split("\n").first.gsub(/\Aruby-/, '')
524
+ end.uniq - [RUBY_VERSION]
525
+ end
526
+
527
+ def rvm_required?
528
+ additional_ruby_versions.any?
529
+ end
530
+
526
531
  def install_bundler
527
532
  puts "------------------------------------------------ Installing bundler ---------------------------------------------------"
528
533
  cmd ="bash --login -c \"cd #{PROJECT_PATH} && gem install bundler:1.17.3\""
@@ -1,3 +1,3 @@
1
1
  module EtFullSystem
2
- VERSION = "8.1.0-rc1"
2
+ VERSION = "8.1.0-rc2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: et_full_system
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.0.pre.rc1
4
+ version: 8.1.0.pre.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor