oneblackbear-obbistrano 1.0.35 → 1.0.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -84,8 +84,10 @@ Capistrano::Configuration.instance(:must_exist).load do
84
84
  task :deploy do
85
85
  config_check
86
86
  deploy_check
87
+ syncdb
87
88
  php_wax_deploy if defined? "#{phpwax}"
88
89
  cms_deploy if defined? "#{cms}"
90
+ cms_syncdb if defined? "#{cms}"
89
91
  end
90
92
 
91
93
  task :deploy_check do
@@ -93,6 +95,10 @@ Capistrano::Configuration.instance(:must_exist).load do
93
95
  git_deploy if repository.include? "git"
94
96
  svn_deploy if repository.include? "svn"
95
97
  end
98
+
99
+ task :syncdb do
100
+ run "cd #{deploy_to} && script/syncdb"
101
+ end
96
102
 
97
103
  task :git_deploy do
98
104
  logger.level = 0
@@ -137,6 +143,10 @@ Capistrano::Configuration.instance(:must_exist).load do
137
143
  logger.level = 3
138
144
  logger.info "Wildfire CMS has been updated on branch #{cms}"
139
145
  end
146
+
147
+ task :cms_syncdb do
148
+ run "cd #{deploy_to} && script/plugin syncdb cms"
149
+ end
140
150
 
141
151
  task :php_wax_deploy do
142
152
  logger.level = 0
data/obbistrano.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{obbistrano}
5
- s.version = "1.0.35"
5
+ s.version = "1.0.36"
6
6
  s.authors = ["Ross Riley", "One Black Bear"]
7
7
  s.date = Time.now
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oneblackbear-obbistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.35
4
+ version: 1.0.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley