whenever-elasticbeanstalk 1.1.4 → 1.1.6

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: 9f0349fecdc40d7d0b003bf8bb8491385973f099
4
- data.tar.gz: 1318ba5f99fb398a99b88ef0256596e43dd36033
3
+ metadata.gz: 4038ad9ae11d114cbc65b3c540d2b1a321c697d2
4
+ data.tar.gz: f499574c2bc13ba0dbcaf473abf0013aba9c2a6e
5
5
  SHA512:
6
- metadata.gz: 48ade216b71c196734f8bbd82349ecb265286c3896fa47473af564665c091260ded245bf5cbcf6098add354315279b9ceb8d8b638873abfd34d15568f0f32d2d
7
- data.tar.gz: 40b1ceec1c70cc0ce210411e57d14c19c144e8d9a6054286bdb90bb1de1bbefccfa8f003a6dfa133e9f858e305752e908d6ce42598cdf114b006b40a40441584
6
+ metadata.gz: a65b67bcdbf6cd210ed45b896ed3a62b9179ce900301f6427c240cda3c74af2fd6cc2baec23be709137d7eced240758119cf5e7cb648df0b359a5791ffb4730c
7
+ data.tar.gz: 124a59cfdf04608172ec078e31a30369344b94ba4366627a578f7cd8fe61fbbbf1d30cd857276cc47656bb765dc07a0fad130570771b7df956b4709de126c23b
data/README.md CHANGED
@@ -89,7 +89,7 @@ end
89
89
  To run a task on all instance, omit the `roles` option.
90
90
  ```ruby
91
91
  every 1.minute do
92
- command "touch /opt/elasticbeanstalk/containerfiles/.cron_check"
92
+ command "touch $EB_CONFIG_APP_SUPPORT/.cron_check"
93
93
  end
94
94
  ```
95
95
 
@@ -80,9 +80,15 @@ files:
80
80
  group: root
81
81
  content: |
82
82
  #!/usr/bin/env bash
83
- . /opt/elasticbeanstalk/containerfiles/envvars
84
- cd $EB_CONFIG_APP_CURRENT
85
- su -c "/usr/local/bin/bundle exec setup_cron" $EB_CONFIG_APP_USER
83
+ # /opt/elasticbeanstalk/hooks/appdeploy/post/10_reload_cron.sh
84
+
85
+ if test -d /opt/elasticbeanstalk/containerfiles; then
86
+ . /opt/elasticbeanstalk/containerfiles/envvars
87
+ elif test -d /opt/elasticbeanstalk/support; then
88
+ . /opt/elasticbeanstalk/support/envvars
89
+ fi
90
+
91
+ su -l -c "cd $EB_CONFIG_APP_CURRENT && /usr/local/bin/bundle exec setup_cron" $EB_CONFIG_APP_USER
86
92
  # Add Bundle to the PATH
87
93
  "/etc/profile.d/bundle.sh":
88
94
  mode: "000755"
@@ -92,15 +98,55 @@ files:
92
98
  #!/usr/bin/env bash
93
99
  export PATH=$PATH:/usr/local/bin
94
100
  encoding: plain
101
+ # Update /opt/elasticbeanstalk/###/envvars.d/appenv to include EB_CONFIG_SUPPORT
102
+ /tmp/update_appenv_include_eb_config_support.sh:
103
+ mode: "000755"
104
+ owner: root
105
+ group: root
106
+ content: |
107
+ #!/usr/bin/env bash
108
+ # update_appenv_include_eb_config_support.sh
109
+ if test -d /opt/elasticbeanstalk/containerfiles; then
110
+ echo "containerfiles"
111
+ grep -Fwq "export EB_CONFIG_SUPPORT" /opt/elasticbeanstalk/containerfiles/envvars.d/appenv
112
+ if [ $? -eq 1 ]; then
113
+ echo "export EB_CONFIG_SUPPORT=/opt/elasticbeanstalk/containerfiles"
114
+ echo "export EB_CONFIG_SUPPORT=/opt/elasticbeanstalk/containerfiles" >> /opt/elasticbeanstalk/containerfiles/envvars.d/appenv;
115
+ fi
116
+ elif test -d /opt/elasticbeanstalk/support; then
117
+ echo "support"
118
+ grep -Fwq "export EB_CONFIG_SUPPORT" /opt/elasticbeanstalk/support/envvars.d/appenv
119
+ if [ $? -eq 1 ]; then
120
+ echo "export EB_CONFIG_SUPPORT=/opt/elasticbeanstalk/support"
121
+ echo "export EB_CONFIG_SUPPORT=/opt/elasticbeanstalk/support" >> /opt/elasticbeanstalk/support/envvars.d/appenv;
122
+ fi
123
+ fi
124
+ encoding: plain
125
+ commands:
126
+ create_bundle_symlink_patch:
127
+ test: test ! -f /usr/local/bin/bundle
128
+ command: ln -s `su -l -c "which bundle" $EB_CONFIG_APP_USER` /usr/local/bin/bundle
129
+ ignoreErrors: true
130
+ a_elasticbeanstalk_support_path:
131
+ command: . /tmp/update_appenv_include_eb_config_support.sh
132
+ ignoreErrors: false
133
+ zz_check_support_path_environment_variable:
134
+ command: echo $EB_SUPPORT
135
+ ignoreErrors: true
95
136
  container_commands:
96
137
  cron_01_set_leader:
97
- test: test ! -f /opt/elasticbeanstalk/containerfiles/.cron-setup-complete
138
+ test: test ! -f /opt/elasticbeanstalk/containerfiles/.cron-setup-complete || test ! -f /opt/elasticbeanstalk/support/.cron-setup-complete
98
139
  leader_only: true
99
140
  cwd: /var/app/ondeck
100
141
  command: su -c "/usr/local/bin/bundle exec create_cron_leader --no-update" $EB_CONFIG_APP_USER
101
- cron_02_write_cron_setup_complete_file:
102
- cwd: /opt/elasticbeanstalk/containerfiles
103
- command: touch .cron-setup-complete
142
+ cron_02_write_cron_setup_complete_file_containerfiles:
143
+ test: test -d /opt/elasticbeanstalk/containerfiles
144
+ command: touch /opt/elasticbeanstalk/containerfiles/.cron-setup-complete
145
+ ignoreErrors: true
146
+ cron_02_write_cron_setup_complete_file_support:
147
+ test: test -d /opt/elasticbeanstalk/support
148
+ command: touch /opt/elasticbeanstalk/support/.cron-setup-complete
149
+ ignoreErrors: true
104
150
  FILE
105
151
 
106
152
  file = '.ebextensions/cron.config'
@@ -1,5 +1,5 @@
1
1
  module Whenever
2
2
  module Elasticbeanstalk
3
- VERSION = "1.1.4"
3
+ VERSION = "1.1.6"
4
4
  end
5
5
  end
@@ -7,15 +7,15 @@ Gem::Specification.new do |gem|
7
7
  gem.name = "whenever-elasticbeanstalk"
8
8
  gem.version = Whenever::Elasticbeanstalk::VERSION
9
9
  gem.platform = Gem::Platform::RUBY
10
- gem.authors = ["Chad McGimpsey","Joel Courtney"]
11
- gem.email = ["chad.mcgimpsey@gmail.com","euphemize@gmail.com"]
10
+ gem.authors = ["Chad McGimpsey","Joel Courtney","Taylor Boyko"]
11
+ gem.email = ["chad.mcgimpsey@gmail.com","euphemize@gmail.com","taylorboyko@gmail.com"]
12
12
  gem.description = %q{Use Whenever on AWS Elastic Beanstalk}
13
13
  gem.summary = %q{Allows you to run cron jobs easily on one or all AWS Elastic Beanstalk instances.}
14
14
  gem.homepage = "https://github.com/dignoe/whenever-elasticbeanstalk"
15
15
  gem.license = 'MIT'
16
16
 
17
- gem.add_dependency('whenever','~> 0.9', '>= 0.9.2')
18
- gem.add_dependency('aws-sdk', '~> 1.50', '>= 1.50.0')
17
+ gem.add_dependency('whenever','~> 0.9.2')
18
+ gem.add_dependency('aws-sdk', '~> 1.50.0')
19
19
 
20
20
  gem.files = `git ls-files`.split($/)
21
21
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,24 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whenever-elasticbeanstalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad McGimpsey
8
8
  - Joel Courtney
9
+ - Taylor Boyko
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-08-06 00:00:00.000000000 Z
13
+ date: 2014-11-09 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: whenever
16
17
  requirement: !ruby/object:Gem::Requirement
17
18
  requirements:
18
19
  - - "~>"
19
- - !ruby/object:Gem::Version
20
- version: '0.9'
21
- - - ">="
22
20
  - !ruby/object:Gem::Version
23
21
  version: 0.9.2
24
22
  type: :runtime
@@ -26,9 +24,6 @@ dependencies:
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
25
  requirements:
28
26
  - - "~>"
29
- - !ruby/object:Gem::Version
30
- version: '0.9'
31
- - - ">="
32
27
  - !ruby/object:Gem::Version
33
28
  version: 0.9.2
34
29
  - !ruby/object:Gem::Dependency
@@ -36,9 +31,6 @@ dependencies:
36
31
  requirement: !ruby/object:Gem::Requirement
37
32
  requirements:
38
33
  - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.50'
41
- - - ">="
42
34
  - !ruby/object:Gem::Version
43
35
  version: 1.50.0
44
36
  type: :runtime
@@ -46,15 +38,13 @@ dependencies:
46
38
  version_requirements: !ruby/object:Gem::Requirement
47
39
  requirements:
48
40
  - - "~>"
49
- - !ruby/object:Gem::Version
50
- version: '1.50'
51
- - - ">="
52
41
  - !ruby/object:Gem::Version
53
42
  version: 1.50.0
54
43
  description: Use Whenever on AWS Elastic Beanstalk
55
44
  email:
56
45
  - chad.mcgimpsey@gmail.com
57
46
  - euphemize@gmail.com
47
+ - taylorboyko@gmail.com
58
48
  executables:
59
49
  - create_cron_leader
60
50
  - ensure_one_cron_leader