cheese 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -20,7 +20,7 @@ HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
20
20
 
21
21
 
22
22
  NAME = "cheese"
23
- REV = nil # UNCOMMENT IF REQUIRED: File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
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",
@@ -2,7 +2,7 @@ module Cheese #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 2
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -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.2
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: