ploy 0.0.11 → 0.0.12

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: 3447f49830b3ade1e0889556f467b39eb20cebd7
4
- data.tar.gz: c84d5886df90ad0aa690666eabe7c93b8e7a82a6
3
+ metadata.gz: e9762e92bbfe7c39fd69e4c34c29e579e7ea67f9
4
+ data.tar.gz: 50e32fe9cb1d25dd9e9176b039752a24dc70f318
5
5
  SHA512:
6
- metadata.gz: ed7d0c9f17e361f36b13cee0d8d9d024c364b0781ee7f61c5d450d867520dc97855024677b439ea6947ae69bf222dec5e02533dc2db8bb0ef17c6c698724390f
7
- data.tar.gz: f79207f8be4acf0e9513f2e6f55b0640723033346843668969c242e9b7065a5ce9164ceae192981faab4469361f00b90142ead56b6f55ed2f2fa7890632f2732
6
+ metadata.gz: 1bcf6f8f54cce083fbf00cbcf6563e22b3ca8809b765bdf23a88ac1056fcd2313cc596cd2c7d841f6d06af606b92293825f67e87b15d97dd762e253ed9afdd60
7
+ data.tar.gz: 861c1113fe2115662d8536e1b63d0d95756dc0afd917adb0a8b4d28b87badda83217b9f7677af072b5132a5e55c793c5ac8cde4b4afcdf299baae6fec7342353
@@ -5,8 +5,10 @@ module Ploy
5
5
  module Command
6
6
  class Publish < Base
7
7
  def run(argv)
8
- Ploy::Publisher.new(argv.shift || '.ploy-publisher.yml').publish
9
- puts "ploy publish ok"
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}"
10
12
  return true
11
13
  end
12
14
 
@@ -42,7 +42,7 @@ module Ploy
42
42
  end
43
43
 
44
44
  def git_revision
45
- return `git rev-parse HEAD`.chomp
45
+ return ENV['TRAVIS_COMMIT'] || `git rev-parse HEAD`.chomp
46
46
  end
47
47
 
48
48
  def git_timestamp
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bruce