bonethug 0.0.26 → 0.0.27
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 +1 -1
- data/lib/bonethug/cli.rb +5 -1
- data/lib/bonethug/version.rb +1 -1
- metadata +2 -2
data/config/deploy.rb
CHANGED
@@ -55,7 +55,7 @@ shared = resources + log_dirs + vendor + ['tmp']
|
|
55
55
|
shared.push 'composer.phar' if use_composer
|
56
56
|
|
57
57
|
# shared config
|
58
|
-
set :
|
58
|
+
set :keep_releases, deploy.get('keep') || 2
|
59
59
|
set :deploy_to, deploy.get('base_dir') + '/' + vhost
|
60
60
|
set :repository, deploy.get('repository')
|
61
61
|
set :branch, ENV['branch'] || deploy.get('default_branch')
|
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'
|
44
|
+
when 'deploy', 'setup', 'remote-backup', 'local-backup', 'sync-backup-to', 'sync-backup-from', 'sync-local-to', 'sync-local-from', 'init-db'
|
45
45
|
|
46
46
|
# handle args
|
47
47
|
environment = ARGV[1]
|
@@ -60,6 +60,10 @@ 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
|
64
|
+
when 'init-db'
|
65
|
+
exec "export to=#{environment} && bundle exec mina -f .bonethug/deploy.rb init_db --verbose"
|
66
|
+
|
63
67
|
# Snapshot Backup
|
64
68
|
when 'remote-backup'
|
65
69
|
exec "export to=#{environment} && bundle exec mina -f .bonethug/deploy.rb backup --verbose"
|
data/lib/bonethug/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.27
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|