capistrano-git 0.0.1 → 0.0.2
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/.rvmrc +1 -0
- data/VERSION +1 -1
- data/capistrano-git.gemspec +12 -11
- data/lib/capistrano/git/strategy.rb +2 -1
- metadata +10 -9
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use ree-1.8.7-2010.02@capistrano-git
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/capistrano-git.gemspec
CHANGED
@@ -4,20 +4,21 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.0.
|
7
|
+
s.name = "capistrano-git"
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
11
|
+
s.authors = ["Ryan Moran"]
|
12
|
+
s.date = "2011-12-06"
|
13
|
+
s.description = "Capistrano recipe for deploying from git"
|
14
|
+
s.email = "ryan.moran@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
+
".rvmrc",
|
21
22
|
"Gemfile",
|
22
23
|
"Gemfile.lock",
|
23
24
|
"LICENSE.txt",
|
@@ -31,11 +32,11 @@ Gem::Specification.new do |s|
|
|
31
32
|
"test/helper.rb",
|
32
33
|
"test/test_capistrano-git.rb"
|
33
34
|
]
|
34
|
-
s.homepage =
|
35
|
-
s.licenses = [
|
36
|
-
s.require_paths = [
|
37
|
-
s.rubygems_version =
|
38
|
-
s.summary =
|
35
|
+
s.homepage = "http://github.com/ryanmoran/capistrano-git"
|
36
|
+
s.licenses = ["MIT"]
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
s.rubygems_version = "1.8.11"
|
39
|
+
s.summary = "Capistrano recipe for deploying from git"
|
39
40
|
|
40
41
|
if s.respond_to? :specification_version then
|
41
42
|
s.specification_version = 3
|
@@ -42,7 +42,8 @@ module Capistrano
|
|
42
42
|
puts "\n\n### MIGRATE!: Migrating...\n\n"
|
43
43
|
run "cd #{configuration[:deploy_to]} && sudo -u #{configuration[:sudo_user]} git checkout #{configuration[:branch]}"
|
44
44
|
run "cd #{configuration[:deploy_to]} && sudo -u #{configuration[:sudo_user]} git pull"
|
45
|
-
|
45
|
+
rake_command = configuration[:without_bundler] ? "#{configuration[:ruby_bin_dir]}/rake" : "#{configuration[:ruby_bin_dir]}/bundle exec rake"
|
46
|
+
run "cd #{configuration[:deploy_to]} && sudo -u #{configuration[:sudo_user]} #{rake_command} db:migrate --trace RAILS_ENV=#{configuration[:rails_env]}"
|
46
47
|
end
|
47
48
|
|
48
49
|
def restart!
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Moran
|
@@ -15,10 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-12-06 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
22
|
none: false
|
23
23
|
requirements:
|
24
24
|
- - "="
|
@@ -29,12 +29,12 @@ dependencies:
|
|
29
29
|
- 5
|
30
30
|
- 5
|
31
31
|
version: 0.5.5
|
32
|
-
version_requirements: *id001
|
33
32
|
name: capistrano_colors
|
34
33
|
prerelease: false
|
35
34
|
type: :runtime
|
35
|
+
requirement: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
38
|
none: false
|
39
39
|
requirements:
|
40
40
|
- - ~>
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
- 6
|
46
46
|
- 4
|
47
47
|
version: 1.6.4
|
48
|
-
version_requirements: *id002
|
49
48
|
name: jeweler
|
50
49
|
prerelease: false
|
51
50
|
type: :development
|
51
|
+
requirement: *id002
|
52
52
|
description: Capistrano recipe for deploying from git
|
53
53
|
email: ryan.moran@gmail.com
|
54
54
|
executables: []
|
@@ -60,6 +60,7 @@ extra_rdoc_files:
|
|
60
60
|
- README.rdoc
|
61
61
|
files:
|
62
62
|
- .document
|
63
|
+
- .rvmrc
|
63
64
|
- Gemfile
|
64
65
|
- Gemfile.lock
|
65
66
|
- LICENSE.txt
|
@@ -101,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
102
|
requirements: []
|
102
103
|
|
103
104
|
rubyforge_project:
|
104
|
-
rubygems_version: 1.8.
|
105
|
+
rubygems_version: 1.8.11
|
105
106
|
signing_key:
|
106
107
|
specification_version: 3
|
107
108
|
summary: Capistrano recipe for deploying from git
|