elastic-beanstalk 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -168,7 +168,7 @@ module Elastic
168
168
  if defined?(Rails)
169
169
  Rails.root.join(relative_path)
170
170
  elsif defined?(Rake.original_dir)
171
- Rake.original_dir.join(relative_path)
171
+ File.expand_path(relative_path, Rake.original_dir)
172
172
  else
173
173
  File.expand_path(relative_path, Dir.pwd)
174
174
  end
@@ -19,8 +19,12 @@ namespace :eb do
19
19
  #env = ENV['RAILS_ENV'] || Rails.env || 'development'
20
20
  env = ENV['RAILS_ENV'] || 'development'
21
21
 
22
- # load the configuration
23
- EbConfig.load!(env)
22
+ # load the configuration from same dir (for standalone CI purposes) or from the rails config dir if within the rails project
23
+ filename = EbConfig.resolve_path('eb.yml')
24
+ unless File.exists? filename
25
+ filename = EbConfig.resolve_path('config/eb.yml')
26
+ end
27
+ EbConfig.load!(env, filename)
24
28
 
25
29
  # Let's be explicit regardless of 'production' being the eb's default shall we? Set RACK_ENV and RAILS_ENV based on the given environment
26
30
  EbConfig.set_option(:'aws:elasticbeanstalk:application:environment', 'RACK_ENV', "#{EbConfig.environment}")
@@ -1,5 +1,5 @@
1
1
  module Elastic
2
2
  module Beanstalk
3
- VERSION = '0.1.6'
3
+ VERSION = '0.1.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-beanstalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -185,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  segments:
187
187
  - 0
188
- hash: -3297737622237847301
188
+ hash: -1158080329481301492
189
189
  required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  none: false
191
191
  requirements:
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  segments:
196
196
  - 0
197
- hash: -3297737622237847301
197
+ hash: -1158080329481301492
198
198
  requirements: []
199
199
  rubyforge_project:
200
200
  rubygems_version: 1.8.25