obbistrano 1.1.104 → 1.1.105
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/obbistrano_tasks.rb +8 -5
- data/obbistrano.gemspec +1 -1
- metadata +2 -2
data/lib/obbistrano_tasks.rb
CHANGED
@@ -118,9 +118,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
118
118
|
end
|
119
119
|
|
120
120
|
if defined? "#{commit}"
|
121
|
-
|
121
|
+
pretty_print "--> Deploying application from #{repository} on commit #{commit}"
|
122
122
|
else
|
123
|
-
|
123
|
+
pretty_print "--> Deploying application from #{repository} on branch #{branch}"
|
124
124
|
end
|
125
125
|
|
126
126
|
begin
|
@@ -133,6 +133,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
133
133
|
puts_ok
|
134
134
|
end
|
135
135
|
|
136
|
+
pretty_print "--> Updating code from remote repository"
|
136
137
|
run "cd #{deploy_to} && git fetch"
|
137
138
|
|
138
139
|
if defined? "#{commit}"
|
@@ -144,7 +145,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
144
145
|
run "cd #{deploy_to} && git checkout -b #{branch} origin/#{branch} && git submodule update --init --recursive"
|
145
146
|
end
|
146
147
|
end
|
147
|
-
|
148
|
+
puts_ok
|
148
149
|
end
|
149
150
|
|
150
151
|
task :svn_deploy, :roles =>[:web] do
|
@@ -193,6 +194,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
193
194
|
run "cd #{deploy_to}/wax && git checkout #{phpwax}"
|
194
195
|
end
|
195
196
|
run "cd #{deploy_to}/wax && git pull origin #{phpwax}"
|
197
|
+
puts_ok
|
196
198
|
end
|
197
199
|
|
198
200
|
|
@@ -498,7 +500,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
498
500
|
if defined? "#{newdeploy}" then
|
499
501
|
if defined? "#{plugins}"
|
500
502
|
plugins.each do |plugin|
|
501
|
-
pretty_print "--> plugin: #{plugin}"
|
503
|
+
pretty_print "--> plugin: #{plugin}\n"
|
502
504
|
paths << "#{build_to}/plugins/#{plugin}/resources/public/stylesheets"
|
503
505
|
end
|
504
506
|
end
|
@@ -519,6 +521,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
519
521
|
end
|
520
522
|
target = "#{build_to}/public/stylesheets/build/#{bundle_name}_combined.css"
|
521
523
|
File.open(target, 'w') { |f| f.write(bundle) }
|
524
|
+
puts_ok
|
522
525
|
end
|
523
526
|
else
|
524
527
|
paths = paths | get_top_level_directories("#{build_to}/plugins/cms/resources/public/stylesheets") if defined? "#{cms}"
|
@@ -556,7 +559,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
556
559
|
end
|
557
560
|
Dir.mkdir("#{build_to}/public/javascripts/build") rescue ""
|
558
561
|
paths.each do |bundle_directory|
|
559
|
-
pretty_print "--> directory: #{bundle_directory}"
|
562
|
+
pretty_print "--> directory: #{bundle_directory}\n"
|
560
563
|
bundle_name = bundle_directory.gsub("#{build_to}/", "").gsub("plugins/", "").gsub("/resources/public/javascripts", "").gsub("public/javascripts/", "")
|
561
564
|
pretty_print "--> bundle name: #{bundle_name}"
|
562
565
|
next if bundle_name.empty?
|
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.105"
|
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=
|