renfield 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,25 @@
1
1
  h1. Renfield
2
2
 
3
+ This gem adds several interesting features to "vlad the deployer":http://rubyhitsquad.com/Vlad_the_Deployer.html
4
+
5
+ The name comes from Dracula's servant, "R. M. Renfield":http://en.wikipedia.org/wiki/Renfield .
6
+
3
7
  h2. Installation
4
8
 
5
9
  On your @environment.rb@ :
6
10
 
7
- <pre>
8
- config.gem :renfield
9
- </pre>
11
+ <pre>config.gem :renfield</pre>
10
12
 
11
13
  Then execute @rake gems:install@ if needed.
12
14
 
13
15
  The Renfield requires vlad - gems:install should install that one too.
14
16
 
17
+ You can also install renfield + dependencies manually by doing:
18
+
19
+ <pre>gem install renfield</pre>
20
+
21
+
22
+
15
23
  Your @lib/tasks/vlad.rake@ must also include vlad. Like so:
16
24
 
17
25
  <pre>
@@ -46,7 +54,7 @@ h3. Remote tasks
46
54
  * @vlad:maintenance:set@ puts a "this site is undergoing maintenance" page on the site
47
55
  * @vlad:maintenance:remove@ removes the maintenance page
48
56
 
49
-
57
+ That's all for now.
50
58
 
51
59
 
52
60
 
@@ -36,7 +36,11 @@ namespace :vlad do
36
36
  end
37
37
 
38
38
  def remote_rake(command)
39
- run "cd #{current_path}; rake RAILS_ENV='production' #{command}"
39
+ run "cd #{current_path}; rake RAILS_ENV='#{rails_env}' #{command}"
40
+ end
41
+
42
+ def rsync(server, port, server_path, local_path)
43
+ run "rsync --rsh='ssh -p#{port}' -r -z #{server}:#{server_path} #{local_path} --progress --stats"
40
44
  end
41
45
 
42
46
  desc "changes the owner of the complete directory to the group 'rails'"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{renfield}
3
- s.version = "0.0.1"
3
+ s.version = "0.0.2"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Enrique Garcia Cota", "Francisco de Juan"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renfield
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Enrique Garcia Cota