eb_deployer 0.5.1.beta2 → 0.5.1.beta3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/eb_deployer/tasks.rb +5 -1
- data/lib/eb_deployer/version.rb +1 -1
- metadata +1 -1
data/lib/eb_deployer/tasks.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
1
3
|
namespace :eb do
|
2
4
|
def eb_deployer_env
|
3
5
|
ENV['EB_DEPLOYER_ENV'] || 'dev'
|
@@ -15,7 +17,9 @@ namespace :eb do
|
|
15
17
|
|
16
18
|
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
19
|
task :package => [:clean] do
|
18
|
-
|
20
|
+
package = eb_deployer_package
|
21
|
+
FileUtils.mkdir_p(File.dirname(package))
|
22
|
+
sh "git ls-files | zip #{package} -@"
|
19
23
|
end
|
20
24
|
|
21
25
|
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."
|
data/lib/eb_deployer/version.rb
CHANGED