inploy 1.4.0 → 1.4.1
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/Rakefile +1 -1
- data/lib/inploy/templates/rails3.rb +10 -0
- metadata +2 -2
data/Rakefile
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
module Inploy
|
|
2
2
|
module Templates
|
|
3
3
|
module Rails3
|
|
4
|
+
|
|
5
|
+
def remote_setup
|
|
6
|
+
if branch.eql? "master"
|
|
7
|
+
checkout = ""
|
|
8
|
+
else
|
|
9
|
+
checkout = "&& $(git branch | grep -vq #{branch}) && git checkout -f -b #{branch} origin/#{branch}"
|
|
10
|
+
end
|
|
11
|
+
remote_run "cd #{path} && #{@sudo}git clone --depth 1 #{repository} #{application} && cd #{application} #{checkout} && bundle install ~/.bundle && #{@sudo}rake inploy:local:setup environment=#{environment}"
|
|
12
|
+
end
|
|
13
|
+
|
|
4
14
|
def install_gems
|
|
5
15
|
run "bundle install ~/.bundle"
|
|
6
16
|
end
|