omnibus 6.0.25 → 6.0.30
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/Gemfile +3 -2
- data/README.md +1 -1
- data/lib/omnibus/builder.rb +4 -2
- data/lib/omnibus/generator.rb +1 -0
- data/lib/omnibus/generator_files/Gemfile.erb +2 -2
- data/lib/omnibus/generator_files/config/projects/project.rb.erb +0 -3
- data/lib/omnibus/generator_files/config/software/preparation.rb.erb +30 -0
- data/lib/omnibus/packagers/rpm.rb +2 -0
- data/lib/omnibus/version.rb +1 -1
- data/spec/spec_helper.rb +6 -0
- data/spec/unit/generator_spec.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed65ad83fa1ddd7ebc9be5254d38054d3de93cc8ba6f681538a2d3bd25356b46
|
4
|
+
data.tar.gz: c848e02cedec959d16e647abb94fe08fb708550c1325d49a0ad3af6557181e1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d967c3cd4a784d1839cae80a2aa00efd06fe8f6a757ad372f4d0839f332c4c3e65d43d199dc8136fc5827791e543a82dfc2bb2ad7dade918647286b0ee153853
|
7
|
+
data.tar.gz: d5a38d81451a488fde804af1d19f8dc8515b4d3b087d12b7eb305b528e8943d88e5e6e5255940c771a78b795d028b1a406d1cef0b68a006665228b6bfdb0383a
|
data/Gemfile
CHANGED
@@ -14,5 +14,6 @@ group :debug do
|
|
14
14
|
gem "pry-stack_explorer"
|
15
15
|
end
|
16
16
|
|
17
|
-
|
18
|
-
gem "
|
17
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.5")
|
18
|
+
gem "ohai", "<15"
|
19
|
+
end
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#  Omnibus
|
2
2
|
|
3
3
|
[][gem]
|
4
|
-
[](https://buildkite.com/chef-oss/chef-omnibus-master-verify)
|
5
5
|
[][appveyor]
|
6
6
|
|
7
7
|
Easily create full-stack installers for your project across a variety of platforms.
|
data/lib/omnibus/builder.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright 2012-
|
2
|
+
# Copyright 2012-2019, Chef Software Inc.
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
# you may not use this file except in compliance with the License.
|
@@ -372,7 +372,7 @@ module Omnibus
|
|
372
372
|
# @param (see #command)
|
373
373
|
# @return (see #command)
|
374
374
|
#
|
375
|
-
def appbundle(software_name, lockdir: nil, gem: nil, without: nil, **options)
|
375
|
+
def appbundle(software_name, lockdir: nil, gem: nil, without: nil, extra_bin_files: nil , **options)
|
376
376
|
build_commands << BuildCommand.new("appbundle `#{software_name}'") do
|
377
377
|
bin_dir = "#{install_dir}/bin"
|
378
378
|
appbundler_bin = embedded_bin("appbundler")
|
@@ -400,6 +400,8 @@ module Omnibus
|
|
400
400
|
# get `--without` support, you will likely wind up going down a sad path).
|
401
401
|
command << [ "--without", without.join(",") ] unless without.nil?
|
402
402
|
|
403
|
+
command << [ "--extra-bin-files", extra_bin_files.join(",") ] unless extra_bin_files.nil? || extra_bin_files.empty?
|
404
|
+
|
403
405
|
# Ensure the main bin dir exists
|
404
406
|
FileUtils.mkdir_p(bin_dir)
|
405
407
|
|
data/lib/omnibus/generator.rb
CHANGED
@@ -90,6 +90,7 @@ module Omnibus
|
|
90
90
|
|
91
91
|
def create_example_software_definitions
|
92
92
|
template("config/software/zlib.rb.erb", "#{target}/config/software/#{name}-zlib.rb", template_options)
|
93
|
+
template("config/software/preparation.rb.erb", "#{target}/config/software/preparation.rb", template_options)
|
93
94
|
end
|
94
95
|
|
95
96
|
def create_kitchen_files
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# Copyright <%= Time.now.year %> YOUR NAME
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
|
17
|
+
name "preparation"
|
18
|
+
description "the steps required to preprare the build"
|
19
|
+
default_version "1.0.0"
|
20
|
+
|
21
|
+
license :project_license
|
22
|
+
skip_transitive_dependency_licensing true
|
23
|
+
|
24
|
+
build do
|
25
|
+
block do
|
26
|
+
touch "#{install_dir}/embedded/lib/.gitkeep"
|
27
|
+
touch "#{install_dir}/embedded/bin/.gitkeep"
|
28
|
+
touch "#{install_dir}/bin/.gitkeep"
|
29
|
+
end
|
30
|
+
end
|
data/lib/omnibus/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
Encoding.default_external = Encoding::UTF_8
|
2
|
+
|
1
3
|
require "rspec"
|
2
4
|
require "rspec/its"
|
3
5
|
require "rspec/json_expectations"
|
@@ -16,6 +18,10 @@ def mac?
|
|
16
18
|
end
|
17
19
|
|
18
20
|
RSpec.configure do |config|
|
21
|
+
config.expect_with :rspec do |c|
|
22
|
+
c.max_formatted_output_length = 1000
|
23
|
+
end
|
24
|
+
|
19
25
|
# Custom matchers and shared examples
|
20
26
|
require_relative "support/examples"
|
21
27
|
require_relative "support/matchers"
|
data/spec/unit/generator_spec.rb
CHANGED
@@ -36,6 +36,7 @@ module Omnibus
|
|
36
36
|
omnibus-name/config/projects/name.rb
|
37
37
|
omnibus-name/config/software
|
38
38
|
omnibus-name/config/software/name-zlib.rb
|
39
|
+
omnibus-name/config/software/preparation.rb
|
39
40
|
omnibus-name/omnibus.rb
|
40
41
|
omnibus-name/package-scripts
|
41
42
|
omnibus-name/package-scripts/name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omnibus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|
@@ -368,6 +368,7 @@ files:
|
|
368
368
|
- lib/omnibus/generator_files/Gemfile.erb
|
369
369
|
- lib/omnibus/generator_files/README.md.erb
|
370
370
|
- lib/omnibus/generator_files/config/projects/project.rb.erb
|
371
|
+
- lib/omnibus/generator_files/config/software/preparation.rb.erb
|
371
372
|
- lib/omnibus/generator_files/config/software/zlib.rb.erb
|
372
373
|
- lib/omnibus/generator_files/gitignore.erb
|
373
374
|
- lib/omnibus/generator_files/omnibus.rb.erb
|