obbistrano 1.1.109 → 1.1.110
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/lib/obbistrano_tasks.rb +3 -3
- data/obbistrano.gemspec +1 -1
- metadata +2 -2
data/lib/obbistrano_tasks.rb
CHANGED
|
@@ -112,7 +112,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
112
112
|
|
|
113
113
|
set :local_branch, $1 if `git branch` =~ /\* (\S+)\s/m
|
|
114
114
|
if !local_branch.eql? branch
|
|
115
|
-
|
|
115
|
+
pretty_print "You are on branch #{local_branch}, not #{branch}, please check out there before deploying to be able to combine the correct js and css files.".red
|
|
116
116
|
puts_fail
|
|
117
117
|
exit
|
|
118
118
|
end
|
|
@@ -140,9 +140,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
140
140
|
run "cd #{deploy_to} && git checkout #{commit} && git submodule update --init --recursive"
|
|
141
141
|
else
|
|
142
142
|
begin
|
|
143
|
-
run "cd #{deploy_to} && git show-branch #{branch} && git checkout #{branch}
|
|
143
|
+
run "cd #{deploy_to} && git show-branch #{branch} && git checkout #{branch} ; git reset --hard origin/#{branch} && git submodule update --init --recursive"
|
|
144
144
|
rescue
|
|
145
|
-
run "cd #{deploy_to} && git checkout -b #{branch} origin/#{branch}
|
|
145
|
+
run "cd #{deploy_to} && git checkout -b #{branch} origin/#{branch} ; git submodule update --init --recursive"
|
|
146
146
|
end
|
|
147
147
|
end
|
|
148
148
|
puts_ok
|
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.1.
|
|
5
|
+
s.version = "1.1.110"
|
|
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=
|