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 CHANGED
@@ -1,3 +1,10 @@
1
+ === 1.0.1 / 2009-11-04
2
+
3
+ * 2 minor enhancements
4
+
5
+ * Use environment option
6
+ * Default to production
7
+
1
8
  === 1.0.0 / 2009-10-30
2
9
 
3
10
  * 1 major enhancement
data/Manifest.txt CHANGED
@@ -4,4 +4,3 @@ Manifest.txt
4
4
  README.rdoc
5
5
  Rakefile
6
6
  lib/vlad/daemon_kit.rb
7
- test/test_vlad-daemon_kit.rb
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
@@ -1,23 +1,24 @@
1
1
  require 'vlad'
2
2
 
3
3
  class Vlad::DaemonKit
4
- VERSION = '1.0.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.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-10-30 00:00:00 +00:00
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
- - test/test_vlad-daemon_kit.rb
72
+ test_files: []
73
+
@@ -1,8 +0,0 @@
1
- require "test/unit"
2
- require "vlad/daemon_kit"
3
-
4
- class TestVladDaemonKit < Test::Unit::TestCase
5
- def test_sanity
6
- flunk "write tests or I will kneecap you"
7
- end
8
- end