vlad-rainbows 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +12 -8
- data/VERSION +1 -1
- data/lib/vlad/rainbows.rb +2 -2
- data/vlad-rainbows.gemspec +44 -0
- metadata +5 -4
data/README.md
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
# Rainbows for Vlad
|
2
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
3
|
## Description
|
7
4
|
|
8
5
|
A [Vlad](http://rubyhitsquad.com/Vlad_the_Deployer.html) plugin for controlling [Rainbows](http://rainbows.rubyforge.org/).
|
9
6
|
|
10
7
|
## Installation
|
11
8
|
|
12
|
-
|
9
|
+
### Bundler
|
10
|
+
|
11
|
+
Add the following to your Gemfile.
|
12
|
+
|
13
|
+
gem "vlad-rainbows", "~> 0.1.0"
|
13
14
|
|
14
15
|
## Usage
|
15
16
|
|
@@ -22,22 +23,25 @@ In your rake file do the following:
|
|
22
23
|
puts $!
|
23
24
|
end
|
24
25
|
|
25
|
-
This plugin assumes you have rake tasks to handle stopping/starting
|
26
|
+
This plugin assumes you have rake tasks to handle stopping/starting Rainbows. By default the tasks are named:
|
26
27
|
|
27
28
|
* app:start
|
28
29
|
* app:stop
|
29
30
|
|
31
|
+
The tasks invoked can be overriden by updating deploy.rb with:
|
32
|
+
|
33
|
+
set :app_start_task, "task_name"
|
34
|
+
set :app_stop_task, "task_name"
|
35
|
+
|
30
36
|
The plugin also assumes you have a way execute these rake tasks remotely.
|
31
37
|
|
32
38
|
def run_rake task
|
33
39
|
run [
|
34
40
|
"cd #{current_path}",
|
35
41
|
"#{rake_cmd} RACK_ENV=#{rack_env} #{task}",
|
36
|
-
]
|
42
|
+
].join " && "
|
37
43
|
end
|
38
44
|
|
39
|
-
Will most likely add this functionality into the gem in the next few weeks.
|
40
|
-
|
41
45
|
## Credits
|
42
46
|
|
43
47
|
John Barnette's [vlad-git](https://github.com/jbarnette/vlad-git), for which this was based on.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/vlad/rainbows.rb
CHANGED
@@ -4,12 +4,12 @@ class Vlad::Rainbows
|
|
4
4
|
namespace :vlad do
|
5
5
|
desc "Start the daemon."
|
6
6
|
remote_task :start_app, :roles => :app do
|
7
|
-
run_rake "app:start"
|
7
|
+
run_rake Rake::RemoteTask.fetch :app_start_task, "app:start"
|
8
8
|
end
|
9
9
|
|
10
10
|
desc "Stop the daemon."
|
11
11
|
remote_task :stop_app, :roles => :app do
|
12
|
-
run_rake "app:stop"
|
12
|
+
run_rake Rake::RemoteTask.fetch :app_stop_task, "app:stop"
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{vlad-rainbows}
|
8
|
+
s.version = "0.1.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["retr0h"]
|
12
|
+
s.date = %q{2010-11-04}
|
13
|
+
s.email = %q{john@dewey.ws}
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"LICENSE",
|
16
|
+
"README.md"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".document",
|
20
|
+
".gitignore",
|
21
|
+
"LICENSE",
|
22
|
+
"README.md",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"lib/vlad/rainbows.rb",
|
26
|
+
"vlad-rainbows.gemspec"
|
27
|
+
]
|
28
|
+
s.homepage = %q{http://github.com/retr0h/vlad-rainbows}
|
29
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
30
|
+
s.require_paths = ["lib"]
|
31
|
+
s.rubygems_version = %q{1.3.7}
|
32
|
+
s.summary = %q{A Vlad plugin for controlling Rainbows.}
|
33
|
+
|
34
|
+
if s.respond_to? :specification_version then
|
35
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
36
|
+
s.specification_version = 3
|
37
|
+
|
38
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
39
|
+
else
|
40
|
+
end
|
41
|
+
else
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vlad-rainbows
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- retr0h
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-04 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -36,6 +36,7 @@ files:
|
|
36
36
|
- Rakefile
|
37
37
|
- VERSION
|
38
38
|
- lib/vlad/rainbows.rb
|
39
|
+
- vlad-rainbows.gemspec
|
39
40
|
has_rdoc: true
|
40
41
|
homepage: http://github.com/retr0h/vlad-rainbows
|
41
42
|
licenses: []
|