obbistrano 1.1.103 → 1.1.104
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 +1 -12
- data/obbistrano.gemspec +1 -1
- metadata +2 -2
data/lib/obbistrano_tasks.rb
CHANGED
@@ -108,7 +108,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
108
108
|
end
|
109
109
|
|
110
110
|
task :git_deploy, :roles =>[:web] do
|
111
|
-
logger.level = 2
|
112
111
|
pretty_print "Application being updated on branch #{branch}"
|
113
112
|
|
114
113
|
set :local_branch, $1 if `git branch` =~ /\* (\S+)\s/m
|
@@ -123,7 +122,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
123
122
|
else
|
124
123
|
logger.info "Deploying application from #{repository} on branch #{branch}"
|
125
124
|
end
|
126
|
-
|
125
|
+
|
127
126
|
begin
|
128
127
|
run "ls #{deploy_to}/.git"
|
129
128
|
puts_ok
|
@@ -133,7 +132,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
133
132
|
run "cd #{deploy_to} && git remote add origin #{repository}"
|
134
133
|
puts_ok
|
135
134
|
end
|
136
|
-
logger.level = 2
|
137
135
|
|
138
136
|
run "cd #{deploy_to} && git fetch"
|
139
137
|
|
@@ -154,21 +152,18 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
154
152
|
end
|
155
153
|
|
156
154
|
task :cms_deploy, :roles =>[:web] do
|
157
|
-
logger.level = -1
|
158
155
|
pretty_print "--> Updating Wildfire CMS on branch #{cms}"
|
159
156
|
|
160
157
|
run "mkdir -p #{deploy_to}/plugins/cms"
|
161
158
|
begin
|
162
159
|
run "ls #{deploy_to}/plugins/cms/.git/"
|
163
160
|
rescue
|
164
|
-
logger.level = 2
|
165
161
|
logger.info "Initialising Wildfire Folder"
|
166
162
|
run "cd #{deploy_to}/plugins/cms && git init"
|
167
163
|
run "cd #{deploy_to}/plugins/cms && git remote add origin git://github.com/phpwax/wildfire.git"
|
168
164
|
end
|
169
165
|
logger.info "Updating Wildfire Code from remote"
|
170
166
|
run "cd #{deploy_to}/plugins/cms && git fetch"
|
171
|
-
logger.level = -1
|
172
167
|
begin
|
173
168
|
run "cd #{deploy_to}/plugins/cms && git checkout -b #{cms} origin/#{cms}"
|
174
169
|
rescue
|
@@ -176,25 +171,21 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
176
171
|
end
|
177
172
|
run "cd #{deploy_to}/plugins/cms && git pull origin #{cms}"
|
178
173
|
puts_ok
|
179
|
-
logger.level = 2
|
180
174
|
end
|
181
175
|
|
182
176
|
|
183
177
|
task :php_wax_deploy, :roles =>[:web] do
|
184
|
-
logger.level = -1
|
185
178
|
pretty_print "--> Updating PHP Wax has been updated on branch #{phpwax}"
|
186
179
|
run "mkdir -p #{deploy_to}/wax"
|
187
180
|
begin
|
188
181
|
run "ls #{deploy_to}/wax/.git/"
|
189
182
|
rescue
|
190
|
-
logger.level = 2
|
191
183
|
logger.info "Initialising PHP Wax Folder"
|
192
184
|
run "cd #{deploy_to}/wax && git init"
|
193
185
|
run "cd #{deploy_to}/wax && git remote add origin git://github.com/phpwax/phpwax.git"
|
194
186
|
end
|
195
187
|
logger.info "Updating PHP Wax Code from remote"
|
196
188
|
run "cd #{deploy_to}/wax && git fetch"
|
197
|
-
logger.level = -1
|
198
189
|
begin
|
199
190
|
run "cd #{deploy_to}/wax && git checkout -b #{phpwax} origin/#{phpwax}"
|
200
191
|
puts_ok
|
@@ -202,7 +193,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
202
193
|
run "cd #{deploy_to}/wax && git checkout #{phpwax}"
|
203
194
|
end
|
204
195
|
run "cd #{deploy_to}/wax && git pull origin #{phpwax}"
|
205
|
-
logger.level = 3
|
206
196
|
end
|
207
197
|
|
208
198
|
|
@@ -300,7 +290,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
300
290
|
namespace :deploy do
|
301
291
|
desc "Uses the specified repository to deploy an application. Also checks for correct versions of PHPWax and plugins."
|
302
292
|
task :default, :roles => [:web] do
|
303
|
-
logger.level=-1
|
304
293
|
app.full_deploy
|
305
294
|
end
|
306
295
|
end
|
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.104"
|
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=
|