ploy 0.0.12 → 0.0.13

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ploy/command/publish.rb +14 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9762e92bbfe7c39fd69e4c34c29e579e7ea67f9
4
- data.tar.gz: 50e32fe9cb1d25dd9e9176b039752a24dc70f318
3
+ metadata.gz: 1827c399ad8d0c344fbe2764bdbbcde0478fad6d
4
+ data.tar.gz: 5b0b3575121ebd78cfd2123655dc9b1c0397a96c
5
5
  SHA512:
6
- metadata.gz: 1bcf6f8f54cce083fbf00cbcf6563e22b3ca8809b765bdf23a88ac1056fcd2313cc596cd2c7d841f6d06af606b92293825f67e87b15d97dd762e253ed9afdd60
7
- data.tar.gz: 861c1113fe2115662d8536e1b63d0d95756dc0afd917adb0a8b4d28b87badda83217b9f7677af072b5132a5e55c793c5ac8cde4b4afcdf299baae6fec7342353
6
+ metadata.gz: 4ec20eab07838d117150bb71824ca3a92ed4b7dec8dc2a5b08adbffdcb0f0c333a6cb66dcd4a633beb78e91793862d83a40fdbbe5e71b0e3e5b84151f775ae13
7
+ data.tar.gz: 310c06af06a48e456d3653b8c46724ec95ba7ede32b422cd21e20072261c4ccc24b166298f6b4ddec54f21e664a469ac07fa7a8355d90168badddae8d3c918a6
@@ -5,11 +5,20 @@ module Ploy
5
5
  module Command
6
6
  class Publish < Base
7
7
  def run(argv)
8
- res = Ploy::Publisher.new(argv.shift || '.ploy-publisher.yml').publish
9
- puts "ploy publish (#{res.deploy_name} #{res.branch} #{res.version}) ok"
10
- puts "debug: git rev-parse: #{`git rev-parse HEAD`.chomp}"
11
- puts "debug: git symbolic-ref: #{`git symbolic-ref --short -q HEAD`.chomp}"
12
- return true
8
+ if not is_pull_request_build then
9
+ res = Ploy::Publisher.new(argv.shift || '.ploy-publisher.yml').publish
10
+ puts "ploy publish (#{res.deploy_name} #{res.branch} #{res.version}) ok"
11
+ puts "debug: git rev-parse: #{`git rev-parse HEAD`.chomp}"
12
+ puts "debug: git symbolic-ref: #{`git symbolic-ref --short -q HEAD`.chomp}"
13
+ return true
14
+ else
15
+ puts "skipping publish; this is a PR build"
16
+ end
17
+ end
18
+
19
+ def is_pull_request_build()
20
+ prenv = ENV['TRAVIS_PULL_REQUEST']
21
+ return prenv && (prenv != 'false')
13
22
  end
14
23
 
15
24
  def help
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.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bruce