vlad-rainbows 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (8) hide show
  1. data/.document +5 -0
  2. data/.gitignore +1 -0
  3. data/LICENSE +20 -0
  4. data/README.md +47 -0
  5. data/Rakefile +16 -0
  6. data/VERSION +1 -0
  7. data/lib/vlad/rainbows.rb +15 -0
  8. metadata +74 -0
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2010 Vlad contributors, John Dewey (john@dewey.ws)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # Rainbows for Vlad
2
+
3
+ * [http://github.com/retr0h/vlad-rainbows](http://github.com/retr0h/vlad-rainbows)
4
+ * [http://rubyhitsquad.com/Vlad_the_Deployer.html](http://rubyhitsquad.com/Vlad_the_Deployer.html)
5
+
6
+ ## Description
7
+
8
+ A [Vlad](http://rubyhitsquad.com/Vlad_the_Deployer.html) plugin for controlling [Rainbows](http://rainbows.rubyforge.org/).
9
+
10
+ ## Installation
11
+
12
+ $ gem install vlad-rainbows
13
+
14
+ ## Usage
15
+
16
+ In your rake file do the following:
17
+
18
+ begin
19
+ require "vlad"
20
+ Vlad.load :app => :rainbows
21
+ rescue LoadError
22
+ puts $!
23
+ end
24
+
25
+ This plugin assumes you have rake tasks to handle stopping/starting rainbows; the tasks should be named:
26
+
27
+ * app:start
28
+ * app:stop
29
+
30
+ The plugin also assumes you have a way execute these rake tasks remotely.
31
+
32
+ def run_rake task
33
+ run [
34
+ "cd #{current_path}",
35
+ "#{rake_cmd} RACK_ENV=#{rack_env} #{task}",
36
+ ]
37
+ end
38
+
39
+ Will most likely add this functionality into the gem in the next few weeks.
40
+
41
+ ## Credits
42
+
43
+ John Barnette's [vlad-git](https://github.com/jbarnette/vlad-git), for which this was based on.
44
+
45
+ ## Copyright
46
+
47
+ Copyright 2010 Vlad contributors, John Dewey (john@dewey.ws)
data/Rakefile ADDED
@@ -0,0 +1,16 @@
1
+ require "rubygems"
2
+ require "rake"
3
+
4
+ begin
5
+ require "jeweler"
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "vlad-rainbows"
8
+ gem.summary = %Q{A Vlad plugin for controlling Rainbows.}
9
+ gem.email = "john@dewey.ws"
10
+ gem.homepage = "http://github.com/retr0h/vlad-rainbows"
11
+ gem.authors = ["retr0h"]
12
+ end
13
+ Jeweler::GemcutterTasks.new
14
+ rescue LoadError
15
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
16
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,15 @@
1
+ require "vlad"
2
+
3
+ class Vlad::Rainbows
4
+ namespace :vlad do
5
+ desc "Start the daemon."
6
+ remote_task :start_app, :roles => :app do
7
+ run_rake "app:start"
8
+ end
9
+
10
+ desc "Stop the daemon."
11
+ remote_task :stop_app, :roles => :app do
12
+ run_rake "app:stop"
13
+ end
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vlad-rainbows
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - retr0h
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-11-03 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description:
23
+ email: john@dewey.ws
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files:
29
+ - LICENSE
30
+ - README.md
31
+ files:
32
+ - .document
33
+ - .gitignore
34
+ - LICENSE
35
+ - README.md
36
+ - Rakefile
37
+ - VERSION
38
+ - lib/vlad/rainbows.rb
39
+ has_rdoc: true
40
+ homepage: http://github.com/retr0h/vlad-rainbows
41
+ licenses: []
42
+
43
+ post_install_message:
44
+ rdoc_options:
45
+ - --charset=UTF-8
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ hash: 3
54
+ segments:
55
+ - 0
56
+ version: "0"
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 0
65
+ version: "0"
66
+ requirements: []
67
+
68
+ rubyforge_project:
69
+ rubygems_version: 1.3.7
70
+ signing_key:
71
+ specification_version: 3
72
+ summary: A Vlad plugin for controlling Rainbows.
73
+ test_files: []
74
+