ploy 0.0.13 → 0.0.14

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1827c399ad8d0c344fbe2764bdbbcde0478fad6d
4
- data.tar.gz: 5b0b3575121ebd78cfd2123655dc9b1c0397a96c
3
+ metadata.gz: 04a0c76473f00393f04f3323dbe6b1ef093c3390
4
+ data.tar.gz: c1238c71338e922dedf68d75c15921a8b20cfd98
5
5
  SHA512:
6
- metadata.gz: 4ec20eab07838d117150bb71824ca3a92ed4b7dec8dc2a5b08adbffdcb0f0c333a6cb66dcd4a633beb78e91793862d83a40fdbbe5e71b0e3e5b84151f775ae13
7
- data.tar.gz: 310c06af06a48e456d3653b8c46724ec95ba7ede32b422cd21e20072261c4ccc24b166298f6b4ddec54f21e664a469ac07fa7a8355d90168badddae8d3c918a6
6
+ metadata.gz: b4c5bbb38588150ad2eefc7828c019460f81b42efd39bacbfc96a2f69f8b10a1c7dae430fe1af7e436c177e914026eefc126b274f2f1697f65d50b8a40c8cddf
7
+ data.tar.gz: 408349d857cc69ce80468c997e04f8ce6dfdf85606b81f7335c7ca88cbdd7f77fdba4d1fae1a9b87c6264235780c261ae64992e3e41c7dee5fce6d70b952736c
@@ -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
- puts "ploy publish (#{res.deploy_name} #{res.branch} #{res.version}) ok"
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()
@@ -22,7 +22,8 @@ module Ploy
22
22
  :dist_dirs => @conf['dist_dirs'],
23
23
  :dist_dir => @conf['dist_dir'],
24
24
  :prefix => @conf['prefix'],
25
- :prep_cmd => @conf['prep_cmd']
25
+ :prep_cmd => @conf['prep_cmd'],
26
+ :postinst => @conf['postinst']
26
27
  );
27
28
  return builder
28
29
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bruce