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 +1 -1
- data/lib/django-recipes.rb +1 -1
- data/lib/recipes/django.rb +1 -1
- metadata +1 -2
- data/lib/helpers.rb +0 -17
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.0. | 
| 1 | 
            +
            0.0.3
         | 
    
        data/lib/django-recipes.rb
    CHANGED
    
    
    
        data/lib/recipes/django.rb
    CHANGED
    
    | @@ -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 : | 
| 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. | 
| 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
         |