ploy 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ploy/command/publish.rb +4 -2
- data/lib/ploy/localpackage/config.rb +2 -1
- data/lib/ploy/localpackage/debbuilder.rb +3 -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: 04a0c76473f00393f04f3323dbe6b1ef093c3390
|
4
|
+
data.tar.gz: c1238c71338e922dedf68d75c15921a8b20cfd98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4c5bbb38588150ad2eefc7828c019460f81b42efd39bacbfc96a2f69f8b10a1c7dae430fe1af7e436c177e914026eefc126b274f2f1697f65d50b8a40c8cddf
|
7
|
+
data.tar.gz: 408349d857cc69ce80468c997e04f8ce6dfdf85606b81f7335c7ca88cbdd7f77fdba4d1fae1a9b87c6264235780c261ae64992e3e41c7dee5fce6d70b952736c
|
data/lib/ploy/command/publish.rb
CHANGED
@@ -7,13 +7,15 @@ module Ploy
|
|
7
7
|
def run(argv)
|
8
8
|
if not is_pull_request_build then
|
9
9
|
res = Ploy::Publisher.new(argv.shift || '.ploy-publisher.yml').publish
|
10
|
-
|
10
|
+
if res then
|
11
|
+
puts "ploy publish (#{res.deploy_name} #{res.branch} #{res.version}) ok"
|
12
|
+
end
|
11
13
|
puts "debug: git rev-parse: #{`git rev-parse HEAD`.chomp}"
|
12
14
|
puts "debug: git symbolic-ref: #{`git symbolic-ref --short -q HEAD`.chomp}"
|
13
|
-
return true
|
14
15
|
else
|
15
16
|
puts "skipping publish; this is a PR build"
|
16
17
|
end
|
18
|
+
return true
|
17
19
|
end
|
18
20
|
|
19
21
|
def is_pull_request_build()
|
@@ -13,6 +13,7 @@ module Ploy
|
|
13
13
|
attr_accessor :dist_dirs
|
14
14
|
attr_accessor :dist_dir
|
15
15
|
attr_accessor :prefix
|
16
|
+
attr_accessor :postinst
|
16
17
|
|
17
18
|
def initialize(opts = {})
|
18
19
|
@metadata_dir = "/etc/ploy/metadata.d"
|
@@ -84,6 +85,8 @@ module Ploy
|
|
84
85
|
file.write <<SCRIPT
|
85
86
|
#!/bin/bash
|
86
87
|
|
88
|
+
#{postinst}
|
89
|
+
|
87
90
|
# this is awful
|
88
91
|
check_upstart_service(){
|
89
92
|
status $1 | grep -q "^$1 start" > /dev/null
|