inploy 1.0.1 → 1.1.0
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/locaweb.rb +4 -4
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/inploy/locaweb.rb
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
module Inploy
|
2
2
|
module Locaweb
|
3
3
|
def remote_setup
|
4
|
-
run "rm -Rf #{tmp_path} && git clone
|
4
|
+
run "rm -Rf #{tmp_path} && git clone . #{tmp_path} && tar czf - #{tmp_path} | ssh #{user}@#{host} 'tar xzfv - -C ~/ && mv ~#{tmp_path} #{path}/ && cd #{application_path} && rake inploy:local:setup'"
|
5
5
|
end
|
6
6
|
|
7
7
|
def remote_update
|
8
8
|
run "git push ssh://[#{user}@#{host}]#{application_path} master"
|
9
9
|
super
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
12
|
def local_setup
|
13
13
|
super
|
14
14
|
run "ln -s #{application_path}/public /home/#{user}/public_html/#{application}"
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
def local_update
|
18
18
|
after_update_code
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
def path
|
22
22
|
@path ||= "/home/#{user}/rails_app"
|
23
23
|
end
|