et_full_system 8.0.1 → 8.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/et_full_system/cli/local.rb +14 -6
- data/lib/et_full_system/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f583e690be55a34d7fac2d3487e46b3e6827b12b9b5d09925e40758d6261656
|
4
|
+
data.tar.gz: 7fffbe9a2203313a30085d1e64d91735ad59db56350b632e771fbfb9bcde0b55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b1c7933df6efcd1e5fdbfb13452f31e05bba9f320e1fd9e47d46ccf572945572edbc81171493dacd920e1fc6e0734f9c689fd9dd2a068996f667a7f8fb0c888
|
7
|
+
data.tar.gz: 6754fae685e7512fcddc01a1444d11edb771a553295f0379fafebeecd7b05cc946eac498dbaba461c42eac25a83e86a4caeee3a6c8a0be97f45c9b99c56f4cd7
|
data/Gemfile.lock
CHANGED
@@ -142,6 +142,7 @@ module EtFullSystem
|
|
142
142
|
method_option :in_docker_compose, type: :boolean, default: false, desc: 'Set to true to assume certain services are in docker compose'
|
143
143
|
def setup
|
144
144
|
setup_depencencies
|
145
|
+
install_bundler if rvm_installed?
|
145
146
|
setup_ruby_versions unless !rvm_installed? || options.in_docker_compose?
|
146
147
|
setup_services
|
147
148
|
end
|
@@ -360,7 +361,7 @@ module EtFullSystem
|
|
360
361
|
|
361
362
|
def setup_et1_service
|
362
363
|
puts "------------------------------------------------ SETTING UP ET1 SERVICE ---------------------------------------------------"
|
363
|
-
cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et1.env\"
|
364
|
+
cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et1.env\" && bundle install --with=#{options[:rails_env]}\""
|
364
365
|
puts cmd
|
365
366
|
external_command cmd, 'et1 setup'
|
366
367
|
|
@@ -375,7 +376,7 @@ module EtFullSystem
|
|
375
376
|
|
376
377
|
def setup_et3_service
|
377
378
|
puts "------------------------------------------------ SETTING UP ET3 SERVICE ---------------------------------------------------"
|
378
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et3.env\"
|
379
|
+
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle install --with=#{options[:rails_env]}\""
|
379
380
|
puts cmd
|
380
381
|
external_command cmd, 'et3 setup'
|
381
382
|
|
@@ -386,7 +387,7 @@ module EtFullSystem
|
|
386
387
|
|
387
388
|
def setup_admin_service
|
388
389
|
puts "------------------------------------------------ SETTING UP ADMIN SERVICE ---------------------------------------------------"
|
389
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_admin.env\"
|
390
|
+
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle install --with=#{options[:rails_env]}\""
|
390
391
|
puts cmd
|
391
392
|
external_command cmd, 'admin setup'
|
392
393
|
|
@@ -398,7 +399,7 @@ module EtFullSystem
|
|
398
399
|
|
399
400
|
def setup_api_service
|
400
401
|
puts "------------------------------------------------ SETTING UP API SERVICE ---------------------------------------------------"
|
401
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_api.env\"
|
402
|
+
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle install --with=#{options[:rails_env]}\""
|
402
403
|
puts cmd
|
403
404
|
external_command cmd, 'api setup'
|
404
405
|
|
@@ -410,14 +411,14 @@ module EtFullSystem
|
|
410
411
|
|
411
412
|
def setup_atos_service
|
412
413
|
puts "------------------------------------------------ SETTING UP ATOS SERVICE ---------------------------------------------------"
|
413
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_atos.env\"
|
414
|
+
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_atos.env\" bundle install --with=#{options[:rails_env]}\""
|
414
415
|
puts cmd
|
415
416
|
external_command cmd, 'atos setup'
|
416
417
|
end
|
417
418
|
|
418
419
|
def setup_ccd_service
|
419
420
|
puts "------------------------------------------------ SETTING UP CCD EXPORT SERVICE ---------------------------------------------------"
|
420
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et_ccd_export && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_ccd_export.env\"
|
421
|
+
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et_ccd_export && RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_ccd_export.env\" bundle install --with=#{options[:rails_env]}\""
|
421
422
|
puts cmd
|
422
423
|
external_command cmd, 'ccd setup'
|
423
424
|
end
|
@@ -505,5 +506,12 @@ module EtFullSystem
|
|
505
506
|
def rvm_installed?
|
506
507
|
!`which rvm`.empty?
|
507
508
|
end
|
509
|
+
|
510
|
+
def install_bundler
|
511
|
+
puts "------------------------------------------------ Installing bundler ---------------------------------------------------"
|
512
|
+
cmd ="bash --login -c \"cd #{PROJECT_PATH} && gem install bundler:1.17.3\""
|
513
|
+
puts cmd
|
514
|
+
external_command cmd, 'ccd setup'
|
515
|
+
end
|
508
516
|
end
|
509
517
|
end
|