git-2-s3 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/capistrano/recipes/deploy/strategy/s3_bucket.rb +1 -17
- data/lib/version.rb +1 -1
- metadata +4 -4
@@ -23,8 +23,6 @@ module Capistrano
|
|
23
23
|
logger.debug "#{configuration[:release_path]} #{File.basename(configuration[:release_path])}"
|
24
24
|
put_package
|
25
25
|
|
26
|
-
run "#{aws_environment} s3cmd get #{bucket_name}:#{package_name} #{remote_filename}"
|
27
|
-
run "mkdir #{configuration[:release_path]} && cd #{configuration[:release_path]} && #{decompress(remote_filename).join(" ")} && rm #{remote_filename}"
|
28
26
|
logger.debug "done!"
|
29
27
|
end
|
30
28
|
|
@@ -47,22 +45,8 @@ module Capistrano
|
|
47
45
|
|
48
46
|
Dir.chdir(destination)
|
49
47
|
|
50
|
-
# Put to S3
|
51
48
|
logger.trace "pushing repo contents to S3 bucket #{bucket_name}"
|
52
|
-
|
53
|
-
name = File.basename(entry)
|
54
|
-
next if name == "." || name == ".." || name == ".git"
|
55
|
-
system("s3cmd put #{bucket_name}:#{name} #{package_path}")
|
56
|
-
end
|
57
|
-
|
58
|
-
end
|
59
|
-
|
60
|
-
def package_name
|
61
|
-
@package_name ||= "#{configuration[:application]}_#{revision}.tgz"
|
62
|
-
end
|
63
|
-
|
64
|
-
def package_path
|
65
|
-
@package_path ||= File.join(tmpdir, package_name)
|
49
|
+
system("s3sync -r --exclude='.git' #{destination}/ #{bucket_name}: ")
|
66
50
|
end
|
67
51
|
|
68
52
|
def bucket_name
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-2-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kurt Didenhover
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-13 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|