exercism_config 0.18.0 → 0.19.0

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: 555be062390d82c5998c347d504b0e158388bdc4cd6be78b696b05d6e64a4583
4
- data.tar.gz: 4379e460085f1a7024ebf93a96380ec7bcd68392c7117cf9c3e13d7cac527944
3
+ metadata.gz: 3d8f9947448e72f417cd4da6d1ba5700a8cf3b171b387d3a1112dc23d9d953b6
4
+ data.tar.gz: 07c32a1e10c2ea8e7599086a3038e98ef11e1580e59b833ac45aea4510066d13
5
5
  SHA512:
6
- metadata.gz: fd335e5943218e1316c45c598d45940f4da31f193d30d6f2b7c271081553d770ecc886f59ebd6ab27be5a04088e84ea5d450adb2c3a7b2190e404c508d709968
7
- data.tar.gz: e80961c8c6ff6a55f3eb272027611e6b575c5c365fb81b7f8a901694997dfb4628b8ec7d96943621bf6cae9063e8cf496274a5eef1e21cfae513e680d258e78f
6
+ metadata.gz: abc918c726bb0810528365950c4363901a124815daa5f44356021e8f07d2dd3dec61ed29fb09fc7a4b482ee1b53208a866ccbed473ef501e5616dab0254dab2a
7
+ data.tar.gz: 05c42ebedca84160661fc68f2bc4d6d3115978da15295eded25f19e2d2c21d60ac18b0983c6067a7b3e2df931e1a76f8565b5ae48c77a68efcf316b211447025
@@ -64,20 +64,17 @@ rescue Aws::DynamoDB::Errors::ResourceInUseException => e
64
64
  end
65
65
 
66
66
  settings_file_arg = ARGV.select{|arg|arg.start_with?("--settings-file=")}.first
67
- if settings_file_arg
68
- settings_file = settings_file_arg.split("=").last
69
- settings = YAML.load(File.read(settings_file))
70
- else
71
- settings = {
72
- aws_iterations_bucket: "exercism-staging-iterations",
73
- dynamodb_tooling_jobs_table: "tooling_jobs",
74
- tooling_orchestrator_url: "http://127.0.0.1:3021",
75
- anycable_redis_url: 'redis://127.0.0.1:6379/1',
76
- anycable_rpc_host: '127.0.0.1:50051',
77
- rds_master_endpoint: "localhost",
78
- mysql_socket: "/tmp/mysql.sock"
79
- }
80
- end
67
+ settings_file =
68
+ if settings_file_arg
69
+ settings_file_arg.split("=").last
70
+ elsif ENV["EXERCISM_DOCKER"]
71
+ File.expand_path("../../settings-docker.yml", __FILE__)
72
+ else
73
+ File.expand_path("../../settings-development.yml", __FILE__)
74
+ end
75
+
76
+ puts "Using settings file: #{settings_file}"
77
+ settings = YAML.load(File.read(settings_file))
81
78
 
82
79
  settings.each do |key, value|
83
80
  set_config_value(client, key, value)
@@ -1,3 +1,3 @@
1
1
  module ExercismConfig
2
- VERSION = "0.18.0"
2
+ VERSION = "0.19.0"
3
3
  end
@@ -0,0 +1,7 @@
1
+ aws_iterations_bucket: exercism-staging-iterations
2
+ dynamodb_tooling_jobs_table: tooling_jobs
3
+ tooling_orchestrator_url: http://127.0.0.1:3021
4
+ anycable_redis_url: 'redis://127.0.0.1:6379/1'
5
+ anycable_rpc_host: '127.0.0.1:50051'
6
+ rds_master_endpoint: localhost
7
+ mysql_socket: /tmp/mysql.sock
@@ -0,0 +1,7 @@
1
+ aws_iterations_bucket: exercism-staging-iterations
2
+ dynamodb_tooling_jobs_table: tooling_jobs
3
+ tooling_orchestrator_url: http://tooling-orchestrator:3021
4
+ anycable_redis_url: redis://redis:6379/1
5
+ anycable_rpc_host: 0.0.0.0:50051
6
+ rds_master_endpoint: mysql
7
+ rds_port: 3306
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exercism_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
@@ -133,6 +133,8 @@ files:
133
133
  - lib/exercism_config/retrieve.rb
134
134
  - lib/exercism_config/setup_dynamodb_client.rb
135
135
  - lib/exercism_config/version.rb
136
+ - settings-development.yml
137
+ - settings-docker.yml
136
138
  homepage: https://exercism.io
137
139
  licenses: []
138
140
  metadata: