django-recipes 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/django-recipes/helpers.rb +18 -0
  3. metadata +2 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -0,0 +1,18 @@
1
+ require 'erb'
2
+
3
+ def app_path
4
+ "#{deploy_to}/#{application}"
5
+ end
6
+
7
+ def system_path
8
+ "#{deploy_to}/system"
9
+ end
10
+
11
+ def media_root_path
12
+ "#{deploy_to}/#{media_root}"
13
+ end
14
+
15
+ def render(template, binding)
16
+ template = File.read("#{File.dirname(__FILE__)}/templates/#{template}.erb")
17
+ result = ERB.new(template).result(binding)
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: django-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Hawkins
@@ -26,6 +26,7 @@ files:
26
26
  - Rakefile
27
27
  - VERSION
28
28
  - lib/django-recipes.rb
29
+ - lib/django-recipes/helpers.rb
29
30
  - lib/recipes/deploy.rb
30
31
  - lib/recipes/django.rb
31
32
  - lib/templates/django_vhost.vhost.erb