eb_deployer 0.5.0 → 0.5.1.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/TODOS.md +1 -0
- data/lib/eb_deployer/tasks.rb +30 -0
- data/lib/eb_deployer/version.rb +1 -1
- data/lib/generators/eb_deployer/install/templates/eb_deployer.rake +1 -31
- metadata +6 -5
data/CHANGELOG.md
CHANGED
data/TODOS.md
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
namespace :eb do
|
2
|
+
def eb_deployer_env
|
3
|
+
ENV['EB_DEPLOYER_ENV'] || 'dev'
|
4
|
+
end
|
5
|
+
|
6
|
+
def eb_deployer_package
|
7
|
+
name = File.basename(Dir.pwd).downcase.gsub(/[^0-9a-z]/, '-').gsub(/--/, '-')
|
8
|
+
"tmp/#{name}.zip"
|
9
|
+
end
|
10
|
+
|
11
|
+
desc "Remove the package file we generated."
|
12
|
+
task :clean do
|
13
|
+
sh "rm -rf #{eb_deployer_package}"
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Build package for eb_deployer to deploy to a Ruby environment in tmp directory. It zips all file list by 'git ls-files'"
|
17
|
+
task :package => [:clean, :environment] do
|
18
|
+
sh "git ls-files | zip #{eb_deployer_package} -@"
|
19
|
+
end
|
20
|
+
|
21
|
+
desc "Deploy package we built in tmp directory. default to dev environment, specify environment variable EB_DEPLOYER_ENV to override, for example: EB_DEPLOYER_ENV=production rake eb:deploy."
|
22
|
+
task :deploy => [:package] do
|
23
|
+
sh "eb_deploy -p #{eb_deployer_package} -e #{eb_deployer_env}"
|
24
|
+
end
|
25
|
+
|
26
|
+
desc "Destroy Elastic Beanstalk environments. It won't destroy resources defined in eb_deployer.yml. Default to dev environment, specify EB_DEPLOYER_ENV to override."
|
27
|
+
task :destroy do
|
28
|
+
sh "eb_deploy -d -e #{eb_deployer_env}"
|
29
|
+
end
|
30
|
+
end
|
data/lib/eb_deployer/version.rb
CHANGED
@@ -1,31 +1 @@
|
|
1
|
-
|
2
|
-
def eb_deployer_env
|
3
|
-
ENV['EB_DEPLOYER_ENV'] || 'dev'
|
4
|
-
end
|
5
|
-
|
6
|
-
def eb_deployer_package
|
7
|
-
name = File.basename(Dir.pwd).downcase.gsub(/[^0-9a-z]/, '-').gsub(/--/, '-')
|
8
|
-
"tmp/#{name}.zip"
|
9
|
-
end
|
10
|
-
|
11
|
-
desc "Remove the package file we generated."
|
12
|
-
task :clean do
|
13
|
-
sh "rm -rf #{eb_deployer_package}"
|
14
|
-
end
|
15
|
-
|
16
|
-
desc "Build package for eb_deployer to deploy to a Ruby environment in tmp directory. It zips all file list by 'git ls-files'"
|
17
|
-
task :package => [:clean, :environment] do
|
18
|
-
sh "git ls-files | zip #{eb_deployer_package} -@"
|
19
|
-
end
|
20
|
-
|
21
|
-
desc "Deploy package we built in tmp directory. default to dev environment, specify environment variable EB_DEPLOYER_ENV to override, for example: EB_DEPLOYER_ENV=production rake eb:deploy."
|
22
|
-
task :deploy => [:package] do
|
23
|
-
app_name = Rails.application.class.parent_name.downcase
|
24
|
-
sh "eb_deploy -p #{eb_deployer_package} -e #{eb_deployer_env}"
|
25
|
-
end
|
26
|
-
|
27
|
-
desc "Destroy Elastic Beanstalk environments. It won't destroy resources defined in eb_deployer.yml. Default to dev environment, specify EB_DEPLOYER_ENV to override."
|
28
|
-
task :destroy do
|
29
|
-
sh "eb_deploy -d -e #{eb_deployer_env}"
|
30
|
-
end
|
31
|
-
end
|
1
|
+
require 'eb_deployer/tasks'
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eb_deployer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
5
|
-
prerelease:
|
4
|
+
version: 0.5.1.beta1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- wpc
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-05-
|
13
|
+
date: 2015-05-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: aws-sdk-v1
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- lib/eb_deployer/package.rb
|
79
79
|
- lib/eb_deployer/resource_stacks.rb
|
80
80
|
- lib/eb_deployer/smoke_test.rb
|
81
|
+
- lib/eb_deployer/tasks.rb
|
81
82
|
- lib/eb_deployer/throttling_handling.rb
|
82
83
|
- lib/eb_deployer/utils.rb
|
83
84
|
- lib/eb_deployer/version.rb
|
@@ -119,9 +120,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
121
|
none: false
|
121
122
|
requirements:
|
122
|
-
- - ! '
|
123
|
+
- - ! '>'
|
123
124
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
125
|
+
version: 1.3.1
|
125
126
|
requirements: []
|
126
127
|
rubyforge_project:
|
127
128
|
rubygems_version: 1.8.23
|