vlad-daemon_kit 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +6 -0
- data/lib/vlad/daemon_kit.rb +3 -2
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
data/lib/vlad/daemon_kit.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'vlad'
|
2
2
|
|
3
3
|
class Vlad::DaemonKit
|
4
|
-
VERSION = '1.1.
|
4
|
+
VERSION = '1.1.1'
|
5
5
|
|
6
6
|
set :mkdirs, 'tmp'
|
7
7
|
set :shared_paths, { 'log' => 'log' }
|
@@ -16,10 +16,11 @@ class Vlad::DaemonKit
|
|
16
16
|
end
|
17
17
|
|
18
18
|
desc "Start the daemon"
|
19
|
-
remote_task(
|
19
|
+
remote_task(:start_app, :extra_args, {:roles => :app}) do |task, args|
|
20
20
|
extra_args = args[:extra_args]
|
21
21
|
run "cd #{current_path} && bin/#{application} -e #{environment} #{arguments.join(' ')} #{extra_args} start"
|
22
22
|
end
|
23
|
+
Rake::Task['vlad:start_app'].enhance %w(vlad:stop_app)
|
23
24
|
|
24
25
|
desc "Stop the daemon"
|
25
26
|
remote_task :stop_app, :roles => :app do
|
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.1.
|
4
|
+
version: 1.1.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-11-
|
12
|
+
date: 2009-11-09 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|