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 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 db scripts
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'
@@ -1,3 +1,3 @@
1
1
  module Bonethug
2
- VERSION = "0.0.27"
2
+ VERSION = "0.0.28"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bonethug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: