cap-git-deploy 0.0.7 → 0.1.0
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.
- checksums.yaml +4 -4
- data/cap-git-deploy.gemspec +16 -15
- data/lib/cap-git-deploy/version.rb +1 -1
- data/lib/recipes/fast-git-deploy.rb +3 -6
- metadata +11 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d30de087816591ce6ef09421e13797133d6fd108
|
|
4
|
+
data.tar.gz: c4aff5bd31e30be5e16d4e47306c06539e6cbf40
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07c3e83ebbc8fe40d99d6e6e2fed72d81a5e0c04f4da7e0cbacf11e8ee4cf7aa24d11211a3008b6f2470cea2675e81b68d6adc396878d16a1efdfde57c453fe8
|
|
7
|
+
data.tar.gz: 18daec933c128c77f6c69a94aa1d46b03163d12f00374d7bd5e2292206954e3a294b75f4e71c86db8f422080ba4b2b6ba4299c640df9376e6ad33c4787c5073a
|
data/cap-git-deploy.gemspec
CHANGED
|
@@ -3,22 +3,23 @@ lib = File.expand_path('../lib', __FILE__)
|
|
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'cap-git-deploy/version'
|
|
5
5
|
|
|
6
|
-
Gem::Specification.new do |
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = 'cap-git-deploy'
|
|
8
|
+
spec.version = Cap::Git::Deploy::VERSION
|
|
9
|
+
spec.authors = ['Nicola Racco', 'Elia Schito']
|
|
10
|
+
spec.email = ['nicola@mikamai.com']
|
|
11
|
+
spec.description = %q{Mikamai-style capistrano git deployment strategy}
|
|
12
|
+
spec.summary = %q{Mikamai-style capistrano git deployment strategy}
|
|
13
|
+
spec.homepage = 'http://www.mikamai.com'
|
|
14
|
+
spec.license = 'MIT'
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
spec.files = `git ls-files`.split($/)
|
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
spec.require_paths = ['lib']
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
spec.add_runtime_dependency 'capistrano', '~> 2.0'
|
|
22
|
+
spec.add_runtime_dependency 'grit'
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
spec.add_development_dependency 'rake'
|
|
24
25
|
end
|
|
@@ -16,16 +16,13 @@ namespace :deploy do
|
|
|
16
16
|
File.join shared_path, shared_child
|
|
17
17
|
end
|
|
18
18
|
run "mkdir -p #{dirs.join ' '} && chmod g+w #{dirs.join ' '}"
|
|
19
|
-
run "git clone #{repository} #{current_path}"
|
|
19
|
+
run "(test -d #{current_path}/.git && cd #{current_path} && git fetch origin) || git clone #{repository} #{current_path}"
|
|
20
20
|
|
|
21
21
|
# This is where the log files will go
|
|
22
|
-
run "
|
|
22
|
+
run "test -d #{current_path}/log || mkdir -p #{current_path}/log"
|
|
23
23
|
|
|
24
24
|
branch = fetch :branch, 'master'
|
|
25
|
-
|
|
26
|
-
# This is to make sure we are on the correct branch
|
|
27
|
-
run "cd #{current_path} && git checkout -b #{branch} --track origin/#{branch}"
|
|
28
|
-
end
|
|
25
|
+
run "cd #{current_path} && git reset --hard origin/#{branch}"
|
|
29
26
|
end
|
|
30
27
|
|
|
31
28
|
namespace :rollback do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cap-git-deploy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicola Racco
|
|
@@ -9,22 +9,22 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-11-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
requirements:
|
|
18
|
-
- -
|
|
18
|
+
- - ~>
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '0'
|
|
20
|
+
version: '2.0'
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
|
-
- -
|
|
25
|
+
- - ~>
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: '0'
|
|
27
|
+
version: '2.0'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: grit
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -53,7 +53,7 @@ dependencies:
|
|
|
53
53
|
- - '>='
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: '0'
|
|
56
|
-
description: Mikamai-style
|
|
56
|
+
description: Mikamai-style capistrano git deployment strategy
|
|
57
57
|
email:
|
|
58
58
|
- nicola@mikamai.com
|
|
59
59
|
executables: []
|
|
@@ -72,7 +72,8 @@ files:
|
|
|
72
72
|
- lib/recipes/git-revisioning.rb
|
|
73
73
|
- lib/recipes/logs.rb
|
|
74
74
|
homepage: http://www.mikamai.com
|
|
75
|
-
licenses:
|
|
75
|
+
licenses:
|
|
76
|
+
- MIT
|
|
76
77
|
metadata: {}
|
|
77
78
|
post_install_message:
|
|
78
79
|
rdoc_options: []
|
|
@@ -90,8 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
90
91
|
version: '0'
|
|
91
92
|
requirements: []
|
|
92
93
|
rubyforge_project:
|
|
93
|
-
rubygems_version: 2.
|
|
94
|
+
rubygems_version: 2.1.2
|
|
94
95
|
signing_key:
|
|
95
96
|
specification_version: 4
|
|
96
|
-
summary: Mikamai-style
|
|
97
|
+
summary: Mikamai-style capistrano git deployment strategy
|
|
97
98
|
test_files: []
|