django-recipes 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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -1,4 +1,4 @@
1
- require 'helpers'
2
1
  require 'capistrano'
2
+ require 'django-recipes/helpers'
3
3
 
4
4
  Dir.glob("#{File.dirname(__FILE__)}/recipes/**/*.rb").each { |file| load file }
@@ -1,7 +1,7 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
2
  namespace :django do
3
3
  desc "Runs a command from manage.py"
4
- task :run, :roles => :app do
4
+ task :manage, :roles => :app do
5
5
  run "cd #{app_path}; ./manage.py #{ENV['command']} --settings=#{settings}"
6
6
  end
7
7
  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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Hawkins
@@ -26,7 +26,6 @@ files:
26
26
  - Rakefile
27
27
  - VERSION
28
28
  - lib/django-recipes.rb
29
- - lib/helpers.rb
30
29
  - lib/recipes/deploy.rb
31
30
  - lib/recipes/django.rb
32
31
  - lib/templates/django_vhost.vhost.erb
data/lib/helpers.rb DELETED
@@ -1,17 +0,0 @@
1
- def app_path
2
- "#{deploy_to}/#{application}"
3
- end
4
-
5
- def system_path
6
- "#{deploy_to}/system"
7
- end
8
-
9
- def media_root_path
10
- "#{deploy_to}/#{media_root}"
11
- end
12
-
13
- def render(template, binding)
14
- require 'erb'
15
- template = File.read("#{File.dirname(__FILE__)}/templates/#{template}.erb")
16
- result = ERB.new(template).result(binding)
17
- end