elastic_beans 0.13.0.alpha7 → 0.13.0.alpha9

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
  SHA1:
3
- metadata.gz: 6c7e6af10b562bf1ca2c47b499c962479c25f260
4
- data.tar.gz: cb958914d9f2d97153369addbef09dff743d5d32
3
+ metadata.gz: ee4fda0cd226aed551dae8279ae5eeac150406e3
4
+ data.tar.gz: 285f058245b4f2f8ccc0038d2021361f9559334e
5
5
  SHA512:
6
- metadata.gz: 16acb819c121eb984ae73eacf7b77ead3ff936b6e66eddaf8e1147e99ecf6cfb16abaf4e09fe402194e2f39e84edb3f146ea91f53667ddabfafb149a5675a22d
7
- data.tar.gz: 70655c6345593c2fd1b4efcacd93713205a4556c2fa6e9ef077b9e71a0d5a8a4355beb8faa05f5a2021cd99c52839014e4100589d399ef4ebd29734c62e8ec8f
6
+ metadata.gz: 437805b061a5002bd5f4d5d410a7d8ba34d6f00af5d7f2cec492758379fc6531df12f275185a96c4a6adb3cafa302f85757e2685d18885fc76a15a56157fd925
7
+ data.tar.gz: c30039690a910f16ec6e9c173c7cf4499597072726a855ba243f6936e22857a5db50e0f5a0298b9451dd121ad580d7c64d654379c4b30d85ccdfce5ebed08e9a
@@ -51,7 +51,6 @@ module ElasticBeans
51
51
  template_option_setting(template: template, namespace: "aws:elasticbeanstalk:command", option_name: "BatchSize", default: "1", new_settings: option_settings),
52
52
  template_option_setting(template: template, namespace: "aws:elasticbeanstalk:command", option_name: "BatchSizeType", default: "Fixed", new_settings: option_settings),
53
53
  template_option_setting(template: template, namespace: "aws:elasticbeanstalk:command", option_name: "DeploymentPolicy", default: "Rolling", new_settings: option_settings),
54
- template_option_setting(template: template, namespace: "aws:elasticbeanstalk:application:environment", option_name: "PROCESS_ACTIVE_ELASTIC_JOBS", default: "true", new_settings: option_settings),
55
54
  template_option_setting(template: template, namespace: "aws:elasticbeanstalk:application:environment", option_name: "ELASTIC_BEANS_ENV_VARS", default: config_path, new_settings: option_settings),
56
55
  template_option_setting(template: template, namespace: "aws:elasticbeanstalk:environment", option_name: "ServiceRole", default: "aws-elasticbeanstalk-service-role", new_settings: option_settings),
57
56
  template_option_setting(template: template, namespace: "aws:elasticbeanstalk:healthreporting:system", option_name: "SystemType", default: "enhanced", new_settings: option_settings),
@@ -15,7 +15,7 @@ module ElasticBeans
15
15
  def build_option_settings(option_settings: [], **_)
16
16
  super + [
17
17
  template_option_setting(namespace: "aws:elasticbeanstalk:application", option_name: "Application Healthcheck URL", default: "HTTP:80/", new_settings: option_settings),
18
- template_option_setting(namespace: "aws:elasticbeanstalk:application:environment", option_name: "PROCESS_ACTIVE_ELASTIC_JOBS", override: "false", new_settings: option_settings),
18
+ template_option_setting(namespace: "aws:elasticbeanstalk:application:environment", option_name: "PROCESS_ACTIVE_ELASTIC_JOBS", override: "true", new_settings: option_settings),
19
19
  template_option_setting(namespace: "aws:elasticbeanstalk:application:environment", option_name: "ELASTIC_BEANS_EXEC_QUEUE_URL", override: application.exec_queue_url, new_settings: option_settings),
20
20
  template_option_setting(namespace: "aws:elasticbeanstalk:application:environment", option_name: "RAILS_SKIP_MIGRATIONS", default: "true", new_settings: option_settings),
21
21
  ]
@@ -14,7 +14,7 @@ module ElasticBeans
14
14
  def build_option_settings(option_settings: [], **_)
15
15
  super + [
16
16
  template_option_setting(namespace: "aws:elasticbeanstalk:application", option_name: "Application Healthcheck URL", default: "HTTP:80/", new_settings: option_settings),
17
- template_option_setting(namespace: "aws:elasticbeanstalk:application:environment", option_name: "PROCESS_ACTIVE_ELASTIC_JOBS", override: "false", new_settings: option_settings),
17
+ template_option_setting(namespace: "aws:elasticbeanstalk:application:environment", option_name: "PROCESS_ACTIVE_ELASTIC_JOBS", override: "true", new_settings: option_settings),
18
18
  template_option_setting(namespace: "aws:elasticbeanstalk:application:environment", option_name: "RAILS_SKIP_MIGRATIONS", default: "true", new_settings: option_settings),
19
19
  ]
20
20
  end
@@ -27,7 +27,7 @@ module ElasticBeans
27
27
  def build_option_settings(option_settings: [], **_)
28
28
  super + [
29
29
  template_option_setting(namespace: "aws:elasticbeanstalk:application", option_name: "Application Healthcheck URL", default: "HTTP:80/", new_settings: option_settings),
30
- template_option_setting(namespace: "aws:elasticbeanstalk:application:environment", option_name: "PROCESS_ACTIVE_ELASTIC_JOBS", override: "false", new_settings: option_settings),
30
+ template_option_setting(namespace: "aws:elasticbeanstalk:application:environment", option_name: "PROCESS_ACTIVE_ELASTIC_JOBS", override: "true", new_settings: option_settings),
31
31
  template_option_setting(namespace: "aws:elasticbeanstalk:application:environment", option_name: "RAILS_SKIP_MIGRATIONS", default: "true", new_settings: option_settings),
32
32
  template_option_setting(namespace: "aws:elasticbeanstalk:sqsd", option_name: "InactivityTimeout", default: "1800", new_settings: option_settings),
33
33
  template_option_setting(namespace: "aws:elasticbeanstalk:sqsd", option_name: "MaxRetries", default: "10", new_settings: option_settings),
@@ -59,8 +59,7 @@ module ElasticBeans
59
59
  end
60
60
 
61
61
  def enabled?
62
- worker_enabled = ENV['PROCESS_ACTIVE_ELASTIC_JOBS']
63
- worker_enabled == 'true'
62
+ Rails.configuration.active_elastic_job.process_jobs
64
63
  end
65
64
  end
66
65
  end
@@ -31,8 +31,7 @@ module ElasticBeans
31
31
  attr_reader :app, :logger
32
32
 
33
33
  def enabled?
34
- worker_enabled = ENV['PROCESS_ACTIVE_ELASTIC_JOBS']
35
- worker_enabled == 'true'
34
+ Rails.configuration.active_elastic_job.process_jobs
36
35
  end
37
36
 
38
37
  def health_request?(request)
@@ -1,3 +1,3 @@
1
1
  module ElasticBeans
2
- VERSION = "0.13.0.alpha7"
2
+ VERSION = "0.13.0.alpha9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_beans
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0.alpha7
4
+ version: 0.13.0.alpha9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Stegman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-28 00:00:00.000000000 Z
11
+ date: 2017-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk