cheese 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/cheese/version.rb +1 -1
- data/lib/web/nginx.rb +5 -0
- metadata +1 -1
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
|
20
20
|
|
21
21
|
|
22
22
|
NAME = "cheese"
|
23
|
-
REV =
|
23
|
+
REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
|
24
24
|
VERS = ENV['VERSION'] || (Cheese::VERSION::STRING + (REV ? ".#{REV}" : ""))
|
25
25
|
CLEAN.include ['**/.*.sw?', '*.gem', '.config']
|
26
26
|
RDOC_OPTS = ['--quiet', '--title', "cheese documentation",
|
data/lib/cheese/version.rb
CHANGED
data/lib/web/nginx.rb
CHANGED
@@ -33,6 +33,11 @@ module Cheese
|
|
33
33
|
find_domains
|
34
34
|
end
|
35
35
|
|
36
|
+
# Find a domain which matches the url given
|
37
|
+
def domain(url)
|
38
|
+
@domains.detect {|domain| domain.vhost.domain == url}
|
39
|
+
end
|
40
|
+
|
36
41
|
# Add a virtual host to the Nginx config file
|
37
42
|
def add(options={})
|
38
43
|
domain = options[:name]
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: cheese
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
6
|
+
version: 0.0.3
|
7
7
|
date: 2007-04-17 00:00:00 +01:00
|
8
8
|
summary: Automate the creation of web applications and accompanying pieces e.g. Nginx, Subversion, Mongrel, Monit, S3.
|
9
9
|
require_paths:
|