vlad-daemon_kit 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +7 -0
- data/Manifest.txt +0 -1
- data/README.rdoc +14 -0
- data/lib/vlad/daemon_kit.rb +4 -3
- metadata +4 -5
- data/test/test_vlad-daemon_kit.rb +0 -8
data/CHANGELOG.rdoc
CHANGED
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -12,8 +12,22 @@ Daemon Kit tasks for Vlad the Deployer.
|
|
12
12
|
|
13
13
|
== SYNOPSIS:
|
14
14
|
|
15
|
+
In rake:
|
16
|
+
|
15
17
|
Vlad.load :type => :daemon_kit, :web => nil, :app => nil, :scm => :git
|
16
18
|
|
19
|
+
In config/deploy.rb:
|
20
|
+
|
21
|
+
set :environment, 'production' # optional
|
22
|
+
set :shared_paths, { 'log' => 'log' } # optional
|
23
|
+
|
24
|
+
set :application, 'foo' # mandatory
|
25
|
+
|
26
|
+
Deployment:
|
27
|
+
|
28
|
+
rake vlad:setup vlad:setup_app # first time
|
29
|
+
rake vlad:update vlad:start_app # subsequent times
|
30
|
+
|
17
31
|
== REQUIREMENTS:
|
18
32
|
|
19
33
|
* vlad
|
data/lib/vlad/daemon_kit.rb
CHANGED
@@ -1,23 +1,24 @@
|
|
1
1
|
require 'vlad'
|
2
2
|
|
3
3
|
class Vlad::DaemonKit
|
4
|
-
VERSION = '1.0.
|
4
|
+
VERSION = '1.0.1'
|
5
5
|
|
6
6
|
set :mkdirs, 'tmp'
|
7
7
|
set :shared_paths, { 'log' => 'log' }
|
8
|
+
set :environment, 'production'
|
8
9
|
|
9
10
|
namespace :vlad do
|
10
11
|
desc "Start the daemon"
|
11
12
|
remote_task :start_app, :roles => :app do
|
12
13
|
commands = %w(stop start).map do |command|
|
13
|
-
"ruby #{current_path}/bin/#{application} #{command}"
|
14
|
+
"ruby #{current_path}/bin/#{application} -e #{environment} #{command}"
|
14
15
|
end
|
15
16
|
run commands.join(' && ')
|
16
17
|
end
|
17
18
|
|
18
19
|
desc "Stop the daemon"
|
19
20
|
remote_task :stop_app, :roles => :app do
|
20
|
-
run "ruby #{current_path}/bin/#{application} stop"
|
21
|
+
run "ruby #{current_path}/bin/#{application} -e #{environment} stop"
|
21
22
|
end
|
22
23
|
end
|
23
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vlad-daemon_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Tucker
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-11-04 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -40,7 +40,6 @@ files:
|
|
40
40
|
- README.rdoc
|
41
41
|
- Rakefile
|
42
42
|
- lib/vlad/daemon_kit.rb
|
43
|
-
- test/test_vlad-daemon_kit.rb
|
44
43
|
has_rdoc: true
|
45
44
|
homepage: http://github.com/raggi/vlad-daemon_kit
|
46
45
|
licenses: []
|
@@ -70,5 +69,5 @@ rubygems_version: 1.3.5
|
|
70
69
|
signing_key:
|
71
70
|
specification_version: 3
|
72
71
|
summary: Daemon Kit tasks for Vlad the Deployer.
|
73
|
-
test_files:
|
74
|
-
|
72
|
+
test_files: []
|
73
|
+
|