pushapp 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pushapp/hook.rb +5 -0
- data/lib/pushapp/version.rb +1 -1
- data/templates/hook/tasks.erb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3a8cd5f41dc3abef8137554e402bfd99a0d34fb
|
4
|
+
data.tar.gz: 2edd0f050968289f8d9d63d69909d53efceb0518
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4753df68773932645082f32ff97c6c227403ccb27663b2bc50963f7fae2ba8d3cab27ee3c914f72d0cb092eea9b088537052d7517c7a95e6a0e886d877df2f03
|
7
|
+
data.tar.gz: 047466e618fd906f74b539fa776af5bccf21bacca9adf53c9c5989da23914208a4b1249a8427a19ae46d0696d023c6dbb8b612bdd56a31a4da5c692626e3c43a
|
data/lib/pushapp/hook.rb
CHANGED
@@ -92,6 +92,7 @@ module Pushapp
|
|
92
92
|
# debug "Copying hook for #{@remote.name} to #{@remote.location}"
|
93
93
|
copy_hook
|
94
94
|
set_hook_permissions
|
95
|
+
set_setup_flag
|
95
96
|
end
|
96
97
|
|
97
98
|
def generate_hook
|
@@ -108,6 +109,10 @@ module Pushapp
|
|
108
109
|
@remote.run "#{make_hook_executable}"
|
109
110
|
end
|
110
111
|
|
112
|
+
def set_setup_flag
|
113
|
+
@remote.run "touch .git/.pushapp.setup.flag"
|
114
|
+
end
|
115
|
+
|
111
116
|
def copy_hook
|
112
117
|
# debug "Making hook executable"
|
113
118
|
# TODO: handle missing user?
|
data/lib/pushapp/version.rb
CHANGED
data/templates/hook/tasks.erb
CHANGED