bento-ya 1.0.0 → 1.0.1
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/bento/cli.rb +2 -2
- data/lib/bento/normalize.rb +7 -4
- data/lib/bento/release.rb +3 -3
- data/lib/bento/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3a4a811fdc2c81366c62522b1b758f45fb8a12e
|
4
|
+
data.tar.gz: 929e82a5352413218acbd12c3cc371f278431569
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e88969658d00883c8f95b034d45e7f5ae78a2668b676a2f4468dce0a27db38a38797bcc79e8ef1f3905f954580e0c88977310e0d1bb97fb5b6679c3b25028ef
|
7
|
+
data.tar.gz: db8fdd9566b2ee62a5b7e6db3c704abbe5cbef24cde7fc1c204d284d823f4328e247960e4d0bfc9756da1ca1de41787e2159006dbe96c639c0ef3365eef3130d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v1.0.1](https://github.com/cheeseplus/bento-ya/tree/v1.0.1) (2017-09-14)
|
4
|
+
[Full Changelog](https://github.com/cheeseplus/bento-ya/compare/v1.0.0...v1.0.1)
|
5
|
+
|
6
|
+
### BUG FIXES
|
7
|
+
|
8
|
+
* Fix normalize
|
9
|
+
* Fix release
|
10
|
+
|
3
11
|
## [v1.0.0](https://github.com/cheeseplus/bento-ya/tree/v1.0.0) (2017-09-05)
|
4
12
|
[Full Changelog](https://github.com/cheeseplus/bento-ya/compare/v0.1.4...v1.0.0)
|
5
13
|
|
data/lib/bento/cli.rb
CHANGED
@@ -38,7 +38,7 @@ class Options
|
|
38
38
|
}
|
39
39
|
|
40
40
|
templates_argv_proc = proc { |options|
|
41
|
-
options.
|
41
|
+
options.template_files = calculate_templates(args) unless args.empty?
|
42
42
|
|
43
43
|
options.template_files.each do |t|
|
44
44
|
if !File.exists?("#{t}.json")
|
@@ -191,7 +191,7 @@ class Options
|
|
191
191
|
map { |glob| result = Dir.glob(glob); result.empty? ? glob : result }.
|
192
192
|
flatten.
|
193
193
|
sort.
|
194
|
-
delete_if { |file| file =~ /\.(variables||metadata)
|
194
|
+
delete_if { |file| file =~ /\.(variables||metadata)\.json/ }.
|
195
195
|
map { |template| template.sub(/\.json$/, "") }
|
196
196
|
end
|
197
197
|
end
|
data/lib/bento/normalize.rb
CHANGED
@@ -7,18 +7,21 @@ class NormalizeRunner
|
|
7
7
|
attr_reader :templates, :build_timestamp, :debug, :override_version
|
8
8
|
|
9
9
|
def initialize(opts)
|
10
|
-
@templates = opts.
|
10
|
+
@templates = opts.template_files
|
11
11
|
@debug = opts.debug
|
12
12
|
@modified = []
|
13
13
|
@build_timestamp = Time.now.gmtime.strftime("%Y%m%d%H%M%S")
|
14
14
|
end
|
15
15
|
|
16
16
|
def start
|
17
|
-
banner("Normalizing for templates:
|
17
|
+
banner("Normalizing for templates:")
|
18
|
+
templates.each { |t| puts "- #{t}" }
|
18
19
|
time = Benchmark.measure do
|
19
|
-
templates.each do |
|
20
|
+
templates.each do |file|
|
21
|
+
dir, template = file.split("/")[0], file.split("/")[1]
|
22
|
+
Dir.chdir dir
|
20
23
|
validate(template)
|
21
|
-
|
24
|
+
Dir.chdir("..")
|
22
25
|
end
|
23
26
|
end
|
24
27
|
if !@modified.empty?
|
data/lib/bento/release.rb
CHANGED
@@ -13,9 +13,9 @@ class ReleaseRunner
|
|
13
13
|
def start
|
14
14
|
banner("Releasing #{box}/#{version}...")
|
15
15
|
time = Benchmark.measure do
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
b = vc_account.get_box(box)
|
17
|
+
v = b.get_version(version)
|
18
|
+
v.release
|
19
19
|
end
|
20
20
|
banner("Release finished in #{duration(time.real)}.")
|
21
21
|
end
|
data/lib/bento/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bento-ya
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Thomas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|