vlad-daemon_kit 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +23 -0
- data/CHANGELOG.rdoc +6 -0
- data/Manifest.txt +7 -0
- data/README.rdoc +48 -0
- data/Rakefile +24 -0
- data/lib/vlad/daemon_kit.rb +23 -0
- data/test/test_vlad-daemon_kit.rb +8 -0
- metadata +74 -0
data/.autotest
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
require 'autotest/restart'
|
4
|
+
|
5
|
+
# Autotest.add_hook :initialize do |at|
|
6
|
+
# at.extra_files << "../some/external/dependency.rb"
|
7
|
+
#
|
8
|
+
# at.libs << ":../some/external"
|
9
|
+
#
|
10
|
+
# at.add_exception 'vendor'
|
11
|
+
#
|
12
|
+
# at.add_mapping(/dependency.rb/) do |f, _|
|
13
|
+
# at.files_matching(/test_.*rb$/)
|
14
|
+
# end
|
15
|
+
#
|
16
|
+
# %w(TestA TestB).each do |klass|
|
17
|
+
# at.extra_class_map[klass] = "test/test_misc.rb"
|
18
|
+
# end
|
19
|
+
# end
|
20
|
+
|
21
|
+
# Autotest.add_hook :run_command do |at|
|
22
|
+
# system "rake build"
|
23
|
+
# end
|
data/CHANGELOG.rdoc
ADDED
data/Manifest.txt
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
= DaemonKit for Vlad
|
2
|
+
|
3
|
+
* http://github.com/raggi/vlad-daemon_kit
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
Daemon Kit tasks for Vlad the Deployer.
|
8
|
+
|
9
|
+
== FEATURES/PROBLEMS:
|
10
|
+
|
11
|
+
* start_app and stop_app
|
12
|
+
|
13
|
+
== SYNOPSIS:
|
14
|
+
|
15
|
+
Vlad.load :type => :daemon_kit, :web => nil, :app => nil, :scm => :git
|
16
|
+
|
17
|
+
== REQUIREMENTS:
|
18
|
+
|
19
|
+
* vlad
|
20
|
+
|
21
|
+
== INSTALL:
|
22
|
+
|
23
|
+
* gem install vlad-daemon_kit
|
24
|
+
|
25
|
+
== LICENSE:
|
26
|
+
|
27
|
+
(The MIT License)
|
28
|
+
|
29
|
+
Copyright (c) 2009 James Tucker, Trade2Win Ltd.
|
30
|
+
|
31
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
32
|
+
a copy of this software and associated documentation files (the
|
33
|
+
'Software'), to deal in the Software without restriction, including
|
34
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
35
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
36
|
+
permit persons to whom the Software is furnished to do so, subject to
|
37
|
+
the following conditions:
|
38
|
+
|
39
|
+
The above copyright notice and this permission notice shall be
|
40
|
+
included in all copies or substantial portions of the Software.
|
41
|
+
|
42
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
43
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
44
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
45
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
46
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
47
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
48
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
|
3
|
+
require 'hoe'
|
4
|
+
Hoe.plugin :doofus, :git
|
5
|
+
|
6
|
+
spec = Hoe.spec 'vlad-daemon_kit' do
|
7
|
+
developer('James Tucker', 'raggi@rubyforge.org')
|
8
|
+
|
9
|
+
self.extra_rdoc_files = FileList["*.rdoc"]
|
10
|
+
self.history_file = "CHANGELOG.rdoc"
|
11
|
+
self.readme_file = "README.rdoc"
|
12
|
+
self.rubyforge_name = "libraggi"
|
13
|
+
self.testlib = :minitest
|
14
|
+
end
|
15
|
+
|
16
|
+
task :release_to_gemcutter => [:clean, :package, :release_sanity] do
|
17
|
+
pkg = "pkg/#{spec.name}-#{spec.version}"
|
18
|
+
gems = Dir["#{pkg}*.gem"]
|
19
|
+
gems.each do |g|
|
20
|
+
sh "gem push #{g}"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
task :release_to => :release_to_gemcutter
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'vlad'
|
2
|
+
|
3
|
+
class Vlad::DaemonKit
|
4
|
+
VERSION = '1.0.0'
|
5
|
+
|
6
|
+
set :mkdirs, 'tmp'
|
7
|
+
set :shared_paths, { 'log' => 'log' }
|
8
|
+
|
9
|
+
namespace :vlad do
|
10
|
+
desc "Start the daemon"
|
11
|
+
remote_task :start_app, :roles => :app do
|
12
|
+
commands = %w(stop start).map do |command|
|
13
|
+
"ruby #{current_path}/bin/#{application} #{command}"
|
14
|
+
end
|
15
|
+
run commands.join(' && ')
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Stop the daemon"
|
19
|
+
remote_task :stop_app, :roles => :app do
|
20
|
+
run "ruby #{current_path}/bin/#{application} stop"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vlad-daemon_kit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- James Tucker
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-10-30 00:00:00 +00:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: hoe
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.3.3
|
24
|
+
version:
|
25
|
+
description: Daemon Kit tasks for Vlad the Deployer.
|
26
|
+
email:
|
27
|
+
- raggi@rubyforge.org
|
28
|
+
executables: []
|
29
|
+
|
30
|
+
extensions: []
|
31
|
+
|
32
|
+
extra_rdoc_files:
|
33
|
+
- Manifest.txt
|
34
|
+
- CHANGELOG.rdoc
|
35
|
+
- README.rdoc
|
36
|
+
files:
|
37
|
+
- .autotest
|
38
|
+
- CHANGELOG.rdoc
|
39
|
+
- Manifest.txt
|
40
|
+
- README.rdoc
|
41
|
+
- Rakefile
|
42
|
+
- lib/vlad/daemon_kit.rb
|
43
|
+
- test/test_vlad-daemon_kit.rb
|
44
|
+
has_rdoc: true
|
45
|
+
homepage: http://github.com/raggi/vlad-daemon_kit
|
46
|
+
licenses: []
|
47
|
+
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options:
|
50
|
+
- --main
|
51
|
+
- README.rdoc
|
52
|
+
require_paths:
|
53
|
+
- lib
|
54
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: "0"
|
59
|
+
version:
|
60
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: "0"
|
65
|
+
version:
|
66
|
+
requirements: []
|
67
|
+
|
68
|
+
rubyforge_project: libraggi
|
69
|
+
rubygems_version: 1.3.5
|
70
|
+
signing_key:
|
71
|
+
specification_version: 3
|
72
|
+
summary: Daemon Kit tasks for Vlad the Deployer.
|
73
|
+
test_files:
|
74
|
+
- test/test_vlad-daemon_kit.rb
|