elastic-beanstalk 0.1.8 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -16,4 +16,5 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
 
19
- .idea
19
+ .idea
20
+ bin/eb.yml
@@ -1,46 +1,25 @@
1
1
  #!/usr/bin/env ruby
2
- #$:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
3
- #
4
- #require 'rubygems'
5
- #require 'rake'
6
- #task=ARGV[0]
7
- #spec = Gem::Specification.find_by_name('elastic-beanstalk')
8
- #gem_dir = spec.gem_dir
9
- #puts gem_dir
10
- #
11
- #
12
- ## testing only
13
- #gem_dir = "/Users/kross/alienfast/elastic-beanstalk"
14
- #puts gem_dir
15
- #
16
- #
17
- #Dir["#{gem_dir}/lib/elastic/beanstalk/tasks/*.rake"].each do |file|
18
- # puts file and Rake::load_rakefile(file)
19
- #end
20
- #Rake::Task.clear # Avoid tasks being loaded several times in dev mode
21
- #Rake::Task[task].reenable # Support re-execution of a task.
22
- #Rake::Task[task].invoke
2
+ require 'rake'
3
+ require 'bundler'
4
+
5
+ raise "Bundler is required. Please install bundler with 'gem install bundler'" unless defined?(Bundler)
23
6
 
24
7
  #
25
8
  # Example:
26
9
  #
27
- # elastic-beanstalk some-task
28
- # elastic-beanstalk some-task[args]
10
+ # elastic-beanstalk eb:show_config
11
+ # elastic-beanstalk eb:show_config[1.1.1]
29
12
  #
30
13
 
31
- gem 'elastic-beanstalk'
14
+ # init dependencies
15
+ Bundler.setup
32
16
 
33
- gem_dir = File.expand_path('..',File.dirname(__FILE__))
34
- $LOAD_PATH.unshift gem_dir# Look in gem directory for resources first.
35
-
36
- require 'elastic-beanstalk'
37
- require 'rake'
38
- require 'pp'
39
-
40
- pwd=Dir.pwd
41
- Dir.chdir("#{gem_dir}/bin") # We'll load rakefile from the gem's bin dir.
17
+ # init rake
42
18
  Rake.application.init
43
- Rake.application.load_rakefile
44
- Dir.chdir(pwd) # Revert to original pwd for any path args passed to task.
45
19
 
20
+ # load the rake tasks
21
+ gem_dir = File.expand_path('..',File.dirname(__FILE__))
22
+ load "#{gem_dir}/lib/elastic/beanstalk/tasks/eb.rake"
23
+
24
+ # invoke the given task
46
25
  Rake.application.invoke_task(ARGV[0])
@@ -3,8 +3,7 @@ require 'zipruby' # gem 'zipruby'
3
3
  require 'ap' # gem 'awesome_print'
4
4
  require 'eb_deployer'
5
5
  require 'time_diff'
6
- require 'elastic/beanstalk/config'
7
- require 'elastic/beanstalk/extensions'
6
+ require 'elastic/beanstalk'
8
7
  require 'yaml'
9
8
 
10
9
  namespace :eb do
@@ -221,7 +220,7 @@ namespace :eb do
221
220
  def print_config
222
221
  # display helpful for figuring out problems later in the deployment logs.
223
222
  puts "\n----------------------------------------------------------------------------------"
224
- puts "Elastic Beanstalk configuration:"
223
+ puts 'Elastic Beanstalk configuration:'
225
224
  puts "\t:access_key_id: #{credentials['access_key_id']}"
226
225
 
227
226
  # pretty print things that will be useful to see in the deploy logs and omit clutter that usually doesn't cause us problems.
@@ -252,7 +251,7 @@ namespace :eb do
252
251
  # load from a user directory i.e. ~/.aws.acme.yml
253
252
  def credentials
254
253
  # load secrets from the user home directory
255
- @credentials = YAML.safe_load_file(aws_secrets_file) if @credentials.nil?
254
+ @credentials = YAML::load_file(aws_secrets_file) if @credentials.nil?
256
255
  @credentials
257
256
  end
258
257
 
@@ -1,5 +1,5 @@
1
1
  module Elastic
2
2
  module Beanstalk
3
- VERSION = '0.1.8'
3
+ VERSION = '0.2.0'
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.8
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-20 00:00:00.000000000 Z
12
+ date: 2013-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -146,7 +146,6 @@ description: ! ' The simplest way to configure and deploy an Elastic Beanstal
146
146
  email:
147
147
  - kevin.ross@alienfast.com
148
148
  executables:
149
- - Rakefile
150
149
  - elastic-beanstalk
151
150
  extensions: []
152
151
  extra_rdoc_files: []
@@ -157,7 +156,6 @@ files:
157
156
  - LICENSE.txt
158
157
  - README.md
159
158
  - Rakefile
160
- - bin/Rakefile
161
159
  - bin/elastic-beanstalk
162
160
  - elastic-beanstalk.gemspec
163
161
  - lib/deep_symbolize.rb
@@ -189,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
187
  version: '0'
190
188
  segments:
191
189
  - 0
192
- hash: -509865312273443585
190
+ hash: -1662769207315793080
193
191
  required_rubygems_version: !ruby/object:Gem::Requirement
194
192
  none: false
195
193
  requirements:
@@ -198,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
196
  version: '0'
199
197
  segments:
200
198
  - 0
201
- hash: -509865312273443585
199
+ hash: -1662769207315793080
202
200
  requirements: []
203
201
  rubyforge_project:
204
202
  rubygems_version: 1.8.25
data/bin/Rakefile DELETED
@@ -1,5 +0,0 @@
1
- # rakefile for external binstubs execution
2
- gem_dir = File.expand_path('..',File.dirname(__FILE__))
3
-
4
- # load the rake tasks
5
- load "#{gem_dir}/lib/elastic/beanstalk/tasks/eb.rake"