oneblackbear-obbistrano 1.0.36 → 1.0.37

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.
@@ -3,6 +3,7 @@ Capistrano::Configuration.instance(:must_exist).load do
3
3
  #### Performs the initial setup for tasks ####
4
4
  task :config_setup do
5
5
  set :root_pass, root rescue nil
6
+ set :environment, root rescue "production"
6
7
  end
7
8
 
8
9
 
@@ -67,6 +68,7 @@ Capistrano::Configuration.instance(:must_exist).load do
67
68
  config_setup
68
69
  databases rescue set(:databases, ["#{application}"])
69
70
  aliases rescue set(:aliases, []);
71
+
70
72
  end
71
73
 
72
74
  task :needs_root do
@@ -97,7 +99,7 @@ Capistrano::Configuration.instance(:must_exist).load do
97
99
  end
98
100
 
99
101
  task :syncdb do
100
- run "cd #{deploy_to} && script/syncdb"
102
+ run "cd #{deploy_to} && script/syncdb #{environment}"
101
103
  end
102
104
 
103
105
  task :git_deploy do
@@ -145,7 +147,7 @@ Capistrano::Configuration.instance(:must_exist).load do
145
147
  end
146
148
 
147
149
  task :cms_syncdb do
148
- run "cd #{deploy_to} && script/plugin syncdb cms"
150
+ run "cd #{deploy_to} && script/plugin syncdb cms #{environment}"
149
151
  end
150
152
 
151
153
  task :php_wax_deploy do
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.36"
5
+ s.version = "1.0.37"
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.36
4
+ version: 1.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley