bosh_common 1.3215.4.0 → 1.3232.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/common/release/release_directory.rb +16 -0
- data/lib/common/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b6247fa7d4aae7ea80b9c87a27f2f3ad4e03a03
|
4
|
+
data.tar.gz: 14f491940ab964e010ae224bcc543a06143c7280
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e7767fc34b7b996cc3a6827ae6c2671321bc12dd55c0b310b75c5d8e1e2aa3072ae43bef88c8639ae450ee3ec84e04a0cb10193cdce0470ff564b3faf0d4390
|
7
|
+
data.tar.gz: 2e1ea8e708289a9607d981db3b8c74d0d960598092fba93287ae7ea6a52c5d9a3ac62442402c29dbc1fb486ce4346289551994f9f3eddfbca9e1f2315fed846d
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Bosh::Common::Release
|
2
|
+
class ReleaseDirectory
|
3
|
+
def initialize(release_directory)
|
4
|
+
@release_directory = release_directory
|
5
|
+
end
|
6
|
+
|
7
|
+
def ordered_release_files
|
8
|
+
dir_entries = Dir.entries(@release_directory)
|
9
|
+
ordered_release_files = ['release.MF']
|
10
|
+
ordered_release_files += (dir_entries & ['LICENSE', 'NOTICE']).sort
|
11
|
+
ordered_release_files << 'jobs'
|
12
|
+
ordered_release_files += (dir_entries & ['compiled_packages', 'packages'])
|
13
|
+
ordered_release_files.map { |filename| "./#{filename}" }
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/common/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh_common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3232.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VMware
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semi_semantic
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- lib/common/exec.rb
|
93
93
|
- lib/common/exec/error.rb
|
94
94
|
- lib/common/exec/result.rb
|
95
|
+
- lib/common/release/release_directory.rb
|
95
96
|
- lib/common/retryable.rb
|
96
97
|
- lib/common/ssl.rb
|
97
98
|
- lib/common/thread_formatter.rb
|