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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29e1709edb9f11e1d53da1056e29e02b2083fbf5
4
- data.tar.gz: 256aa9bcebac136299544ecfe84b81aac263ed0f
3
+ metadata.gz: b3a8cd5f41dc3abef8137554e402bfd99a0d34fb
4
+ data.tar.gz: 2edd0f050968289f8d9d63d69909d53efceb0518
5
5
  SHA512:
6
- metadata.gz: 1ed832d2791477b269fa653c6b84f193ede75e567ca717eef086fc857fffb1d60c2ce11eeb55e5e9672d018b207cfa06a731c95daa01424ef19d569e721cc730
7
- data.tar.gz: d802a27dd8d8c8aae5864768cedc4b7be8a164701819f1ef927affd30ca691b07da390d38a3022d281e65db4c745ce60b2b6e9047e5c32deb7537d0ad117c93d
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?
@@ -1,3 +1,3 @@
1
1
  module Pushapp
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -1 +1,6 @@
1
+ if [ -s "${GIT_DIR}/.pushapp.setup.flag" ]; then
2
+ bundle exec pushapp trigger setup $PAP_REMOTE --local true <%= colorize %>
3
+ rm "${GIT_DIR}/.pushapp.setup.flag"
4
+ fi
5
+
1
6
  bundle exec pushapp trigger push $PAP_REMOTE --local true <%= colorize %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev