et_full_system 0.1.27 → 0.1.28

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: dcbdb5e2363085073513174454857d3a98969656c794d563606a3473bc8fd50a
4
- data.tar.gz: 982da81eef02bfebac5a940ec68fc793976c121805030ceb1bde93e2259c7429
3
+ metadata.gz: 4c9bff179888e6210777d068251e97d9ac47bcf3dbfc56b3af716dab6faffec5
4
+ data.tar.gz: aa6f65ee212bcd9ab817f6fb6044912864a5712642133c981466044611ea27db
5
5
  SHA512:
6
- metadata.gz: 47e11f8bbcf150a8ba925e6600a994be33c67093b4bc5cb008d0d36ea843cb9a18627e3ee72a9eea276c6814f54967ec2e51b00a912eb97ae3d17400d5237fbe
7
- data.tar.gz: dc0aa6649e5b9468c07be54ac0a9ae4d05f070e9e533c03a681bd8043a7c0b674a74065a9c8a6493d7c06e91c1ac9330a7aa27535ec729b72d2d7b34ac1418d4
6
+ metadata.gz: b2b463f798e8769e0fc9380e17b510c31398599754a7d865c913d5f46a585ca4a43a7ca83cbe6674a911497edc5b410ed0c7050268a7269349f4e632da89b91c
7
+ data.tar.gz: 347e2c6c93e27d00d1f5dae4171c7c602003c4018db9a151528a947351056639698caff541f7df326571249732d9c42105939325a3fc89a6486b991a453dbe98
data/Gemfile.lock CHANGED
@@ -14,7 +14,7 @@ GIT
14
14
  PATH
15
15
  remote: .
16
16
  specs:
17
- et_full_system (0.1.27)
17
+ et_full_system (0.1.28)
18
18
  aws-sdk-s3 (~> 1.9)
19
19
  azure-storage (~> 0.15.0.preview)
20
20
  dotenv (~> 2.7, >= 2.7.2)
@@ -31,7 +31,7 @@ GEM
31
31
  tzinfo (~> 1.1)
32
32
  aws-eventstream (1.0.3)
33
33
  aws-partitions (1.158.0)
34
- aws-sdk-core (3.49.0)
34
+ aws-sdk-core (3.50.0)
35
35
  aws-eventstream (~> 1.0, >= 1.0.2)
36
36
  aws-partitions (~> 1.0)
37
37
  aws-sigv4 (~> 1.1)
@@ -82,6 +82,7 @@ module EtFullSystem
82
82
  method_option :without, type: :array, default: [], banner: "service1 service2", desc: "If specified, disables the specified services from running. The services are et1_web, et1_sidekiq, et3_web, mail_web, api_web, api_sidekiq, admin_web, atos_api_web, s3_web, azure_blob_web, fake_acas_web"
83
83
  method_option :azurite_storage_path, default: '/tmp/azurite_storage', desc: "Where to store azurite data"
84
84
  method_option :minio_storage_path, default: '/tmp/minio_storage', desc: "Where to store minio data"
85
+ method_option :rails_env, type: :string, default: ENV.fetch('RAILS_ENV', 'production')
85
86
  def server
86
87
  puts "Scheduling traefik config and file storage config"
87
88
  pid = fork do
@@ -103,6 +104,7 @@ module EtFullSystem
103
104
  subcommand "file_storage", ::EtFullSystem::Cli::Local::FileStorageCommand
104
105
 
105
106
  desc "setup", "Sets up everything ready for first run"
107
+ method_option :rails_env, type: :string, default: ENV.fetch('RAILS_ENV', 'production')
106
108
  def setup
107
109
  setup_depencencies
108
110
  setup_services
@@ -166,7 +168,7 @@ module EtFullSystem
166
168
 
167
169
  def setup_et1_service
168
170
  puts "------------------------------------------------ SETTING UP ET1 SERVICE ---------------------------------------------------"
169
- cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle install\""
171
+ cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle install --with=#{options[:rails_env]}\""
170
172
  puts cmd
171
173
  external_command cmd, 'et1 setup'
172
174
 
@@ -181,7 +183,7 @@ module EtFullSystem
181
183
 
182
184
  def setup_et3_service
183
185
  puts "------------------------------------------------ SETTING UP ET3 SERVICE ---------------------------------------------------"
184
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle install --without=development test\""
186
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle install --with=#{options[:rails_env]}\""
185
187
  puts cmd
186
188
  external_command cmd, 'et3 setup'
187
189
 
@@ -192,7 +194,7 @@ module EtFullSystem
192
194
 
193
195
  def setup_admin_service
194
196
  puts "------------------------------------------------ SETTING UP ADMIN SERVICE ---------------------------------------------------"
195
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle install --without=development test\""
197
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle install --with=#{options[:rails_env]}\""
196
198
  puts cmd
197
199
  external_command cmd, 'admin setup'
198
200
 
@@ -204,7 +206,7 @@ module EtFullSystem
204
206
 
205
207
  def setup_api_service
206
208
  puts "------------------------------------------------ SETTING UP API SERVICE ---------------------------------------------------"
207
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle install --without=development test\""
209
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle install --with=#{options[:rails_env]}\""
208
210
  puts cmd
209
211
  external_command cmd, 'api setup'
210
212
 
@@ -216,7 +218,7 @@ module EtFullSystem
216
218
 
217
219
  def setup_atos_service
218
220
  puts "------------------------------------------------ SETTING UP ATOS SERVICE ---------------------------------------------------"
219
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_atos.env\" bundle install --without=development test\""
221
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_atos.env\" bundle install --with=#{options[:rails_env]}\""
220
222
  puts cmd
221
223
  external_command cmd, 'atos setup'
222
224
  end
@@ -1,3 +1,3 @@
1
1
  module EtFullSystem
2
- VERSION = "0.1.27"
2
+ VERSION = "0.1.28"
3
3
  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: 0.1.27
4
+ version: 0.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-04 00:00:00.000000000 Z
11
+ date: 2019-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor