bonethug 0.0.27 → 0.0.28
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/config/deploy.rb +3 -0
- data/lib/bonethug/cli.rb +7 -3
- data/lib/bonethug/version.rb +1 -1
- metadata +1 -1
    
        data/config/deploy.rb
    CHANGED
    
    | @@ -294,6 +294,9 @@ task :deploy => :environment do | |
| 294 294 | 
             
                  queue! %[export APPLICATION_ENV=#{env} && php #{deploy_to}/current/public/framework/cli-script.php dev/build] if ['silverstripe','silverstripe3'].include? deploy.get('project_type')
         | 
| 295 295 | 
             
                  queue! %[cd #{deploy_to}/current/lib && php flush_drupal_cache.php] if ['drupal','drupal6','drupal7','drupal8'].include? deploy.get('project_type')
         | 
| 296 296 |  | 
| 297 | 
            +
                  # cleanup!
         | 
| 298 | 
            +
                  invoke :'deploy:cleanup'
         | 
| 299 | 
            +
                  
         | 
| 297 300 | 
             
                end
         | 
| 298 301 | 
             
              end
         | 
| 299 302 | 
             
            end
         | 
    
        data/lib/bonethug/cli.rb
    CHANGED
    
    | @@ -41,7 +41,7 @@ module Bonethug | |
| 41 41 | 
             
                    # run the initaliser
         | 
| 42 42 | 
             
                    Installer.bonethugise(location, task.to_sym)
         | 
| 43 43 |  | 
| 44 | 
            -
                  when 'deploy', 'setup', 'remote-backup', 'local-backup', 'sync-backup-to', 'sync-backup-from', 'sync-local-to', 'sync-local-from', 'init-db'
         | 
| 44 | 
            +
                  when 'deploy', 'setup', 'remote-backup', 'local-backup', 'sync-backup-to', 'sync-backup-from', 'sync-local-to', 'sync-local-from', 'init-db', 'force-unlock', 'cleanup'
         | 
| 45 45 |  | 
| 46 46 | 
             
                    # handle args
         | 
| 47 47 | 
             
                    environment = ARGV[1]
         | 
| @@ -60,9 +60,13 @@ module Bonethug | |
| 60 60 | 
             
                    when 'setup'
         | 
| 61 61 | 
             
                      exec "export to=#{environment} && bundle exec mina -f .bonethug/deploy.rb setup --verbose"
         | 
| 62 62 |  | 
| 63 | 
            -
                    # remote  | 
| 63 | 
            +
                    # remote mina scripts
         | 
| 64 64 | 
             
                    when 'init-db'
         | 
| 65 | 
            -
                      exec "export to=#{environment} && bundle exec mina -f .bonethug/deploy.rb init_db --verbose" | 
| 65 | 
            +
                      exec "export to=#{environment} && bundle exec mina -f .bonethug/deploy.rb init_db --verbose"
         | 
| 66 | 
            +
                    when 'force-unlock'
         | 
| 67 | 
            +
                      exec "export to=#{environment} && bundle exec mina -f .bonethug/deploy.rb deploy:force_unlock --verbose"
         | 
| 68 | 
            +
                    when 'cleanup'
         | 
| 69 | 
            +
                      exec "export to=#{environment} && bundle exec mina -f .bonethug/deploy.rb deploy:cleanup --verbose"          
         | 
| 66 70 |  | 
| 67 71 | 
             
                    # Snapshot Backup
         | 
| 68 72 | 
             
                    when 'remote-backup'
         | 
    
        data/lib/bonethug/version.rb
    CHANGED