capistrano-windows-server 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-windows-server}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.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"]
@@ -11,6 +11,16 @@ configuration.load do
11
11
  set :scm_verbose, true
12
12
  set :use_sudo, false
13
13
 
14
+ # We can't run rake directly, because the rake script searches for ruby based on windows paths that aren't valid in this environment
15
+ def rake_cmd
16
+ "#{ruby_exe_path} -e \"require 'rubygems'; gem 'rake', '>= 0'; load Gem.bin_path('rake', 'rake', '>= 0')\""
17
+ end
18
+
19
+ # We can't run mongrel directly, because the mongrel script searches for ruby based on windows paths that aren't valid in this environment
20
+ def mongrel_cmd
21
+ "#{ruby_exe_path} -e \"require 'rubygems'; gem 'mongrel', '>= 0'; load Gem.bin_path('mongrel', 'mongrel_rails', '>= 0')\""
22
+ end
23
+
14
24
  namespace :deploy do
15
25
  desc "Update the code on the server by doing a git pull in the current/ directory"
16
26
  task :update do
@@ -67,7 +77,6 @@ configuration.load do
67
77
 
68
78
  desc "Run pending migrations"
69
79
  task :migrate do
70
- set :rake_cmd, "#{ruby_exe_path} -e \"require 'rubygems'; gem 'rake', '>= 0'; load Gem.bin_path('rake', 'rake', '>= 0')\""
71
80
  run "cd #{current_path} && #{rake_cmd} db:migrate RAILS_ENV=#{rails_env}"
72
81
  end
73
82
 
@@ -104,7 +113,6 @@ configuration.load do
104
113
 
105
114
  desc "Remove mongrel services"
106
115
  task :remove do
107
- set :mongrel_cmd, "#{ruby_exe_path} -e \"require 'rubygems'; gem 'mongrel', '>= 0'; load Gem.bin_path('mongrel', 'mongrel_rails', '>= 0')\""
108
116
  mongrel_instances.each do |n|
109
117
  run "#{mongrel_cmd} service::remove -N #{mongrel_instance_prefix}#{n}"
110
118
  end
@@ -117,7 +125,6 @@ configuration.load do
117
125
  desc "Run a rake command in COMMAND"
118
126
  task :rake do
119
127
  raise "Specify the command with COMMAND='some:task with_arguments'" unless ENV['COMMAND']
120
- set :rake_cmd, "#{ruby_exe_path} -e \"require 'rubygems'; gem 'rake', '>= 0'; load Gem.bin_path('rake', 'rake', '>= 0')\""
121
128
  run "cd #{current_path} && #{rake_cmd} #{ENV['COMMAND']} RAILS_ENV=#{rails_env}"
122
129
  end
123
130
 
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Edward Anderson