oneblackbear-obbistrano 1.0.70 → 1.0.71

Sign up to get free protection for your applications and to get access to all the features.
@@ -146,9 +146,11 @@ Capistrano::Configuration.instance(:must_exist).load do
146
146
  begin
147
147
  run "cd #{deploy_to} && git checkout -b #{branch} origin/#{branch}"
148
148
  rescue
149
+ run "cd #{deploy_to} && git pull origin #{branch}"
149
150
  run "cd #{deploy_to} && git checkout #{branch}"
151
+ run "cd #{deploy_to} && git checkout #{commit}" if "#{commit}"
150
152
  end
151
- logger.level = 2
153
+
152
154
  logger.info "Application has been updated on branch #{branch}"
153
155
  end
154
156
 
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.70"
5
+ s.version = "1.0.71"
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.70
4
+ version: 1.0.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley