peony 0.0.2 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -1
- data/lib/peony/default.rb +2 -0
- data/lib/peony/settings.rb +5 -3
- data/lib/peony/utils.rb +25 -11
- data/lib/peony/version.rb +1 -1
- data/recipes/db/mongo.rake +59 -0
- data/recipes/db/mysql.rake +55 -0
- data/recipes/db/pg.rake +7 -9
- data/recipes/db/redis.rake +36 -0
- data/recipes/elasticsearch.rake +28 -0
- data/recipes/httpd.rake +42 -0
- data/recipes/nginx/www.rake +5 -3
- data/recipes/nginx.rake +4 -6
- data/recipes/php.rake +30 -0
- data/spec/settings_spec.rb +5 -3
- data/templates/elasticsearch/config.yml.erb +364 -0
- data/templates/elasticsearch/logging.yml.erb +54 -0
- data/templates/httpd/extra/httpd-autoindex.conf.erb +93 -0
- data/templates/httpd/extra/httpd-dav.conf.erb +56 -0
- data/templates/httpd/extra/httpd-info.conf.erb +37 -0
- data/templates/httpd/extra/httpd-languages.conf.erb +141 -0
- data/templates/httpd/extra/httpd-mpm.conf.erb +110 -0
- data/templates/httpd/extra/httpd-multilang-errordoc.conf.erb +52 -0
- data/templates/httpd/httpd.conf.erb +467 -0
- data/templates/httpd/magic.erb +382 -0
- data/templates/httpd/mime.types.erb +1357 -0
- data/templates/mongo/master.conf.erb +19 -0
- data/templates/mongo/slave.conf.erb +21 -0
- data/templates/mysql/my.cnf.erb +34 -0
- data/templates/nginx/sites-enabled/php.conf.erb +12 -0
- data/templates/redis.conf.erb +624 -0
- metadata +24 -3
- data/lib/peony/template_binding.rb +0 -22
@@ -1,22 +0,0 @@
|
|
1
|
-
module Peony
|
2
|
-
class TemplateBinding
|
3
|
-
|
4
|
-
def initialize(settings)
|
5
|
-
@settings = settings
|
6
|
-
end
|
7
|
-
|
8
|
-
def context_binding
|
9
|
-
binding
|
10
|
-
end
|
11
|
-
|
12
|
-
def method_missing(meth, *args, &blk)
|
13
|
-
val = @settings.send(meth, *args, &blk)
|
14
|
-
if val == nil
|
15
|
-
super
|
16
|
-
else
|
17
|
-
val
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
22
|
-
end
|