ploy 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 614b0106c907c0c810db0dad6a4a92298bc5f46d
4
- data.tar.gz: 45dcfa66c86d65800a9ff23456f2b379a2a17a6c
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NWE4MzcyMWIzOWYwOTk4ZjQwZDgxYWFmYjE0Y2ZkOGJhMTY2MjkzNA==
5
+ data.tar.gz: !binary |-
6
+ ZjMxMTVhN2YwNDU0NmQ5MTNlOTU4MmYwMTU2ZTZmYmI5YWM0YzYyZg==
5
7
  SHA512:
6
- metadata.gz: a23a1079453065b1cc5e5c6f2e22cfef5b3526a1700a97e6d9e53f5ef73a36c97394ede0f82f1e74d4a06c19a6894bb3edf67763a05230786de2a463c7b2162b
7
- data.tar.gz: 4525c8fb9b591fe77fcf395a8d496274e77fb80c719395580dd455ba4fbe954634a8d2405c29201fde9373b20b0c008900fd101496720b7b6eb1d1148d7519bf
8
+ metadata.gz: !binary |-
9
+ Nzg2ZDMwYzRhMWRiODkwN2ZkMGE3ZDk4OWFlNTgyNDA0NzY4NjliNDBkMDIz
10
+ NDQwNGZhYzJkYTFhZTZmM2Q2YzdlMzBhZTMyYzBlM2FiY2JiZTIxZDFjYjc1
11
+ OTdmODg3YTM2NzI3NmM2NmRmYTA3Yzg3MGE5MzY2MTE2ZTExNjA=
12
+ data.tar.gz: !binary |-
13
+ ZjBhMjdkNzg0OTk4ZGM5YTJkNmE1MjgzZDAzOGE1NWE3OWYwNzM1NTExNDVh
14
+ M2UwODc4NjE2OTY2M2MzZGFmZTkwNDVkM2ZiYTI4ZjE0NWY5ZjE0NGZkMDkw
15
+ YzNlOGJjMWZlZGU4YzhlMjM1ZmMwZmY2MmQyYjNkYWNhYzk3NTY=
@@ -62,7 +62,7 @@ helptext
62
62
  def installable_packages(target_packages, packages)
63
63
  tph = {}
64
64
  target_packages.each { |tp| tph[tp] = true }
65
- packages.find_all { |p| tph[p.deploy_name] }
65
+ installables = packages.find_all { |p| tph[p.deploy_name] && p.deployvia == 'ploy-install' }
66
66
  end
67
67
 
68
68
  private
data/lib/ploy/package.rb CHANGED
@@ -7,13 +7,15 @@ module Ploy
7
7
  attr_accessor :branch
8
8
  attr_accessor :version
9
9
  attr_accessor :variant
10
+ attr_accessor :deployvia
10
11
 
11
- def initialize(bucket, deploy, branch, version, variant = nil)
12
+ def initialize(bucket, deploy, branch, version, variant = nil, deployvia = 'ploy-install')
12
13
  @bucket = bucket
13
14
  @deploy_name = deploy
14
15
  @branch = branch
15
16
  @version = version
16
17
  @variant = variant
18
+ @deployvia = deployvia
17
19
 
18
20
  @store = Ploy::S3Storage.new(bucket)
19
21
  end
@@ -13,7 +13,8 @@ module Ploy
13
13
  k,
14
14
  v['branch'] || conf['branch'],
15
15
  v['version'] || conf['version'],
16
- v['variant'] || conf['variant'] || nil
16
+ v['variant'] || conf['variant'] || nil,
17
+ v['deployvia'] || conf['deployvia'] || nil
17
18
  )
18
19
  end
19
20
  @locked = conf['locked']
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.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bruce
@@ -14,42 +14,42 @@ dependencies:
14
14
  name: aws-sdk
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fpm
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sinatra
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Multi-phase deployment tool for use in a continuous deployment environment.
@@ -59,7 +59,9 @@ executables:
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - bin/ploy
62
63
  - lib/ploy/cli.rb
64
+ - lib/ploy/command.rb
63
65
  - lib/ploy/command/base.rb
64
66
  - lib/ploy/command/bless.rb
65
67
  - lib/ploy/command/build.rb
@@ -68,7 +70,6 @@ files:
68
70
  - lib/ploy/command/install.rb
69
71
  - lib/ploy/command/oracle.rb
70
72
  - lib/ploy/command/publish.rb
71
- - lib/ploy/command.rb
72
73
  - lib/ploy/common.rb
73
74
  - lib/ploy/localpackage/config.rb
74
75
  - lib/ploy/localpackage/debbuilder.rb
@@ -80,7 +81,6 @@ files:
80
81
  - lib/ploy/publisher.rb
81
82
  - lib/ploy/s3storage.rb
82
83
  - lib/ploy/yamlreader.rb
83
- - bin/ploy
84
84
  homepage:
85
85
  licenses: []
86
86
  metadata: {}
@@ -90,17 +90,17 @@ require_paths:
90
90
  - lib
91
91
  required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - '>='
93
+ - - ! '>='
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - '>='
98
+ - - ! '>='
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.1.9
103
+ rubygems_version: 2.3.0
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Multi-phase deployment tool