capistrano-windows-server 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/capistrano-windows-server.gemspec +8 -10
- data/lib/capistrano/ext/windows_server.rb +31 -3
- metadata +13 -15
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
@@ -4,16 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.5.
|
7
|
+
s.name = "capistrano-windows-server"
|
8
|
+
s.version = "0.5.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Edward Anderson"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
|
15
|
-
See the github page for instruction on how to set up Windows to get it ready for a deploy.}
|
16
|
-
s.email = %q{edward.anderson@scimedsolutions.com}
|
12
|
+
s.date = "2012-04-03"
|
13
|
+
s.description = "This gem modifies capistrano recipes to allow deploys to windows machines.\nSeveral nuances such as the lack of symlinks make the deploy a little different, but it's better than doing it by hand.\nSee the github page for instruction on how to set up Windows to get it ready for a deploy."
|
14
|
+
s.email = "edward.anderson@scimedsolutions.com"
|
17
15
|
s.extra_rdoc_files = [
|
18
16
|
"LICENSE.txt",
|
19
17
|
"README.md"
|
@@ -30,11 +28,11 @@ See the github page for instruction on how to set up Windows to get it ready for
|
|
30
28
|
"lib/capistrano-windows-server.rb",
|
31
29
|
"lib/capistrano/ext/windows_server.rb"
|
32
30
|
]
|
33
|
-
s.homepage =
|
31
|
+
s.homepage = "http://github.com/nilbus/capistrano-windows-server"
|
34
32
|
s.licenses = ["MIT"]
|
35
33
|
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version =
|
37
|
-
s.summary =
|
34
|
+
s.rubygems_version = "1.8.21"
|
35
|
+
s.summary = "Deploy Ruby on Rails applications with Capistrano to Windows servers"
|
38
36
|
|
39
37
|
if s.respond_to? :specification_version then
|
40
38
|
s.specification_version = 3
|
@@ -23,7 +23,7 @@ configuration.load do
|
|
23
23
|
def system_path
|
24
24
|
return @system_path if @system_path
|
25
25
|
run 'echo "/bin:/usr/bin:$PATH"' do |channel, stream, data|
|
26
|
-
return @system_path = data.strip # Probably not compatible with multiple
|
26
|
+
return @system_path = data.strip # Probably not compatible with multiple roles with different PATHs
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -192,10 +192,38 @@ configuration.load do
|
|
192
192
|
bundle_exec ENV['COMMAND']
|
193
193
|
end
|
194
194
|
|
195
|
-
desc
|
195
|
+
desc <<-DESC
|
196
|
+
Install the current Bundler environment. By default, gems will be \
|
197
|
+
installed to the shared/bundle path. Gems in the development and \
|
198
|
+
test group will not be installed. The install command is executed \
|
199
|
+
with the --deployment and --quiet flags. If the bundle cmd cannot \
|
200
|
+
be found then you can override the bundle_cmd variable to specifiy \
|
201
|
+
which one it should use.
|
202
|
+
|
203
|
+
You can override any of these defaults by setting the variables shown below.
|
204
|
+
|
205
|
+
N.B. bundle_roles must be defined before you require 'bundler/capistrano' \
|
206
|
+
in your deploy.rb file.
|
207
|
+
|
208
|
+
set :bundle_dir, File.join(fetch(:shared_path), 'bundle')
|
209
|
+
set :bundle_flags, "--deployment --quiet"
|
210
|
+
set :bundle_without, [:development, :test]
|
211
|
+
set :bundle_roles, :app # e.g. [:app, :batch]
|
212
|
+
DESC
|
196
213
|
task :install do
|
197
214
|
raise "No Gemfile detected" unless gemfile_present?
|
198
|
-
|
215
|
+
bundle_flags = fetch(:bundle_flags, "--deployment --quiet")
|
216
|
+
bundle_dir = '../bundle'
|
217
|
+
bundle_without = [*fetch(:bundle_without, [:development, :test])].compact
|
218
|
+
current_release = fetch(:current_path)
|
219
|
+
if current_release.to_s.empty?
|
220
|
+
raise error_type.new("Cannot detect current release path - make sure you have deployed at least once.")
|
221
|
+
end
|
222
|
+
args = [bundle_flags.to_s]
|
223
|
+
args << "--path #{bundle_dir}" unless bundle_dir.to_s.empty?
|
224
|
+
args << "--without #{bundle_without.join(" ")}" unless bundle_without.empty?
|
225
|
+
|
226
|
+
run_ruby_cmd "bundle install #{args.join(' ')}"
|
199
227
|
end
|
200
228
|
end
|
201
229
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-windows-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Edward Anderson
|
@@ -15,14 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
19
|
-
default_executable:
|
18
|
+
date: 2012-04-03 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
prerelease: false
|
23
|
-
name: capistrano
|
24
21
|
type: :runtime
|
25
|
-
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
23
|
none: false
|
27
24
|
requirements:
|
28
25
|
- - ">="
|
@@ -31,12 +28,12 @@ dependencies:
|
|
31
28
|
segments:
|
32
29
|
- 0
|
33
30
|
version: "0"
|
34
|
-
|
35
|
-
|
31
|
+
version_requirements: *id001
|
32
|
+
name: capistrano
|
36
33
|
prerelease: false
|
37
|
-
|
34
|
+
- !ruby/object:Gem::Dependency
|
38
35
|
type: :development
|
39
|
-
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
37
|
none: false
|
41
38
|
requirements:
|
42
39
|
- - ~>
|
@@ -47,7 +44,9 @@ dependencies:
|
|
47
44
|
- 6
|
48
45
|
- 4
|
49
46
|
version: 1.6.4
|
50
|
-
|
47
|
+
version_requirements: *id002
|
48
|
+
name: jeweler
|
49
|
+
prerelease: false
|
51
50
|
description: |-
|
52
51
|
This gem modifies capistrano recipes to allow deploys to windows machines.
|
53
52
|
Several nuances such as the lack of symlinks make the deploy a little different, but it's better than doing it by hand.
|
@@ -71,7 +70,6 @@ files:
|
|
71
70
|
- capistrano-windows-server.gemspec
|
72
71
|
- lib/capistrano-windows-server.rb
|
73
72
|
- lib/capistrano/ext/windows_server.rb
|
74
|
-
has_rdoc: true
|
75
73
|
homepage: http://github.com/nilbus/capistrano-windows-server
|
76
74
|
licenses:
|
77
75
|
- MIT
|
@@ -101,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
99
|
requirements: []
|
102
100
|
|
103
101
|
rubyforge_project:
|
104
|
-
rubygems_version: 1.
|
102
|
+
rubygems_version: 1.8.21
|
105
103
|
signing_key:
|
106
104
|
specification_version: 3
|
107
105
|
summary: Deploy Ruby on Rails applications with Capistrano to Windows servers
|