et_full_system 1.0.10 → 1.0.14
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/Gemfile.lock +4 -4
- data/lib/et_full_system/cli/local.rb +21 -6
- data/lib/et_full_system/cli/local/file_storage.rb +1 -1
- data/lib/et_full_system/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 757811164a61fb474954b4a76629c3915168cb2ee5cc270dc336eea4ca03c139
         | 
| 4 | 
            +
              data.tar.gz: 4a84d08f10e93ab50a9549dbf1537b7741f1381ed40d3704bb17cc4b3dbfb874
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: a7bfcc72bc4c1f6e73db2ef1c5d32713624ca6d49a5621ab0025f254b457678582d4e952d09f4aac9b3c296abdf56fa3dc168e8f0b36a948eeefe7880f7e5272
         | 
| 7 | 
            +
              data.tar.gz: ba94af454905416b33eb372af09a0a1ea429f347485b563066881dfb57da52de77ce5bfcccbdf3f3d1e2bc2f57f47ccfbdd2fcc63817bb3f1ae10dcd128e96a9
         | 
    
        data/Gemfile.lock
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            PATH
         | 
| 2 2 | 
             
              remote: .
         | 
| 3 3 | 
             
              specs:
         | 
| 4 | 
            -
                et_full_system (1.0. | 
| 4 | 
            +
                et_full_system (1.0.14)
         | 
| 5 5 | 
             
                  aws-sdk-s3 (~> 1.9)
         | 
| 6 6 | 
             
                  azure-storage (~> 0.15.0.preview)
         | 
| 7 7 | 
             
                  dotenv (~> 2.7, >= 2.7.2)
         | 
| @@ -24,13 +24,13 @@ GEM | |
| 24 24 | 
             
                addressable (2.7.0)
         | 
| 25 25 | 
             
                  public_suffix (>= 2.0.2, < 5.0)
         | 
| 26 26 | 
             
                aws-eventstream (1.1.0)
         | 
| 27 | 
            -
                aws-partitions (1. | 
| 28 | 
            -
                aws-sdk-core (3. | 
| 27 | 
            +
                aws-partitions (1.416.0)
         | 
| 28 | 
            +
                aws-sdk-core (3.111.0)
         | 
| 29 29 | 
             
                  aws-eventstream (~> 1, >= 1.0.2)
         | 
| 30 30 | 
             
                  aws-partitions (~> 1, >= 1.239.0)
         | 
| 31 31 | 
             
                  aws-sigv4 (~> 1.1)
         | 
| 32 32 | 
             
                  jmespath (~> 1.0)
         | 
| 33 | 
            -
                aws-sdk-kms (1. | 
| 33 | 
            +
                aws-sdk-kms (1.41.0)
         | 
| 34 34 | 
             
                  aws-sdk-core (~> 3, >= 3.109.0)
         | 
| 35 35 | 
             
                  aws-sigv4 (~> 1.1)
         | 
| 36 36 | 
             
                aws-sdk-s3 (1.87.0)
         | 
| @@ -127,6 +127,7 @@ module EtFullSystem | |
| 127 127 | 
             
                method_option :cloud_provider, type: :string, default: ENV.fetch('CLOUD_PROVIDER', 'amazon')
         | 
| 128 128 | 
             
                def setup
         | 
| 129 129 | 
             
                  setup_depencencies
         | 
| 130 | 
            +
                  setup_ruby_versions
         | 
| 130 131 | 
             
                  setup_services
         | 
| 131 132 | 
             
                end
         | 
| 132 133 |  | 
| @@ -149,6 +150,20 @@ module EtFullSystem | |
| 149 150 | 
             
                  external_command cmd, 'setup_dependencies'
         | 
| 150 151 | 
             
                end
         | 
| 151 152 |  | 
| 153 | 
            +
                desc "setup_ruby_versions", "Install all ruby versions required"
         | 
| 154 | 
            +
                def setup_ruby_versions
         | 
| 155 | 
            +
                  versions = Dir.glob(File.join(PROJECT_PATH, 'systems', '*', '.ruby-version')).map do |version_file|
         | 
| 156 | 
            +
                    File.read(version_file).split("\n").first.gsub(/\Aruby-/, '')
         | 
| 157 | 
            +
                  end.uniq - [RUBY_VERSION]
         | 
| 158 | 
            +
             | 
| 159 | 
            +
                  versions.each do |version|
         | 
| 160 | 
            +
                    puts "------------------------------------------------ SETTING UP ruby #{version} ---------------------------------------------------"
         | 
| 161 | 
            +
                    cmd = "bash --login -c \"rvm install #{version}\""
         | 
| 162 | 
            +
                    puts cmd
         | 
| 163 | 
            +
                    external_command cmd, "ruby #{version} install"
         | 
| 164 | 
            +
                  end
         | 
| 165 | 
            +
                end
         | 
| 166 | 
            +
             | 
| 152 167 | 
             
                desc "service_env SERVICE", "Returns the environment variables configured for the specified service"
         | 
| 153 168 | 
             
                def service_env(service)
         | 
| 154 169 | 
             
                  lookup = {
         | 
| @@ -327,7 +342,7 @@ module EtFullSystem | |
| 327 342 |  | 
| 328 343 | 
             
                def setup_et1_service
         | 
| 329 344 | 
             
                  puts "------------------------------------------------ SETTING UP ET1 SERVICE ---------------------------------------------------"
         | 
| 330 | 
            -
                  cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle install --with=#{options[:rails_env]}\""
         | 
| 345 | 
            +
                  cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et1.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
         | 
| 331 346 | 
             
                  puts cmd
         | 
| 332 347 | 
             
                  external_command cmd, 'et1 setup'
         | 
| 333 348 |  | 
| @@ -342,7 +357,7 @@ module EtFullSystem | |
| 342 357 |  | 
| 343 358 | 
             
                def setup_et3_service
         | 
| 344 359 | 
             
                  puts "------------------------------------------------ SETTING UP ET3 SERVICE ---------------------------------------------------"
         | 
| 345 | 
            -
                  cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle install --with=#{options[:rails_env]}\""
         | 
| 360 | 
            +
                  cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et3.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
         | 
| 346 361 | 
             
                  puts cmd
         | 
| 347 362 | 
             
                  external_command cmd, 'et3 setup'
         | 
| 348 363 |  | 
| @@ -353,7 +368,7 @@ module EtFullSystem | |
| 353 368 |  | 
| 354 369 | 
             
                def setup_admin_service
         | 
| 355 370 | 
             
                  puts "------------------------------------------------ SETTING UP ADMIN SERVICE ---------------------------------------------------"
         | 
| 356 | 
            -
                  cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && CLOUD_PROVIDER=#{options[:cloud_provider]} 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]}\""
         | 
| 371 | 
            +
                  cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
         | 
| 357 372 | 
             
                  puts cmd
         | 
| 358 373 | 
             
                  external_command cmd, 'admin setup'
         | 
| 359 374 |  | 
| @@ -365,7 +380,7 @@ module EtFullSystem | |
| 365 380 |  | 
| 366 381 | 
             
                def setup_api_service
         | 
| 367 382 | 
             
                  puts "------------------------------------------------ SETTING UP API SERVICE ---------------------------------------------------"
         | 
| 368 | 
            -
                  cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && CLOUD_PROVIDER=#{options[:cloud_provider]} 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]}\""
         | 
| 383 | 
            +
                  cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_api.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
         | 
| 369 384 | 
             
                  puts cmd
         | 
| 370 385 | 
             
                  external_command cmd, 'api setup'
         | 
| 371 386 |  | 
| @@ -377,14 +392,14 @@ module EtFullSystem | |
| 377 392 |  | 
| 378 393 | 
             
                def setup_atos_service
         | 
| 379 394 | 
             
                  puts "------------------------------------------------ SETTING UP ATOS SERVICE ---------------------------------------------------"
         | 
| 380 | 
            -
                  cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && CLOUD_PROVIDER=#{options[:cloud_provider]} 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]}\""
         | 
| 395 | 
            +
                  cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_atos.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
         | 
| 381 396 | 
             
                  puts cmd
         | 
| 382 397 | 
             
                  external_command cmd, 'atos setup'
         | 
| 383 398 | 
             
                end
         | 
| 384 399 |  | 
| 385 400 | 
             
                def setup_ccd_service
         | 
| 386 401 | 
             
                  puts "------------------------------------------------ SETTING UP CCD EXPORT SERVICE ---------------------------------------------------"
         | 
| 387 | 
            -
                  cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et_ccd_export && CLOUD_PROVIDER=#{options[:cloud_provider]} 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]}\""
         | 
| 402 | 
            +
                  cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et_ccd_export && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_ccd_export.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
         | 
| 388 403 | 
             
                  puts cmd
         | 
| 389 404 | 
             
                  external_command cmd, 'ccd setup'
         | 
| 390 405 | 
             
                end
         | 
| @@ -55,7 +55,7 @@ module EtFullSystem | |
| 55 55 |  | 
| 56 56 | 
             
                    def setup_azure_storage
         | 
| 57 57 | 
             
                      unbundled do
         | 
| 58 | 
            -
                        puts `bash --login -c "cd systems/api && rvm use && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" | 
| 58 | 
            +
                        puts `bash --login -c "export RAILS_ENV=production && cd systems/api && rvm use && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle exec rails configure_azure_storage_containers configure_azure_storage_cors"`
         | 
| 59 59 |  | 
| 60 60 | 
             
                      end
         | 
| 61 61 | 
             
                    end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: et_full_system
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0. | 
| 4 | 
            +
              version: 1.0.14
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Gary Taylor
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021-01- | 
| 11 | 
            +
            date: 2021-01-14 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: thor
         |