oneblackbear-obbistrano 1.0.15 → 1.0.16
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 +17 -2
- data/obbistrano.gemspec +1 -1
- metadata +1 -1
data/lib/obbistrano_tasks.rb
CHANGED
@@ -116,7 +116,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
116
116
|
run "cd plugins/cms && git remote add origin git://github.com:phpwax/wildfire.git"
|
117
117
|
end
|
118
118
|
run "cd plugins/cms && git fetch"
|
119
|
-
|
119
|
+
begin
|
120
|
+
run "cd plugins/cms && git checkout -b #{cms} origin/#{cms}"
|
121
|
+
rescue
|
122
|
+
"cd plugins/cms && git checkout #{cms}"
|
123
|
+
end
|
120
124
|
end
|
121
125
|
|
122
126
|
task :php_wax_deploy do
|
@@ -128,7 +132,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
128
132
|
run "cd wax && git remote add origin git://github.com/phpwax/phpwax.git"
|
129
133
|
end
|
130
134
|
run "cd wax && git fetch"
|
131
|
-
|
135
|
+
begin
|
136
|
+
run "cd wax && git checkout -b #{phpwax} origin/#{phpwax}"
|
137
|
+
rescue
|
138
|
+
"cd wax && git checkout #{phpwax}"
|
139
|
+
end
|
132
140
|
end
|
133
141
|
|
134
142
|
####### ##############
|
@@ -292,6 +300,13 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
292
300
|
app.deploy
|
293
301
|
end
|
294
302
|
end
|
303
|
+
|
304
|
+
namespace :setup do
|
305
|
+
desc "Sets up the server with a user, home directory and mysql login."
|
306
|
+
task :default do
|
307
|
+
app.setup
|
308
|
+
end
|
309
|
+
end
|
295
310
|
|
296
311
|
end
|
297
312
|
|
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.
|
5
|
+
s.version = "1.0.16"
|
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=
|