-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
34 lines (26 loc) · 870 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'bundler/setup'
require 'omnibus'
Omnibus.setup do |o|
##
# Config Section
##
o.config.install_dir = '/opt/chef-utensils'
Omnibus::S3Tasks.define!
Omnibus::CleanTasks.define!
end
overrides = Omnibus::Overrides.overrides
Omnibus.projects("config/projects/*.rb")
local_defs = Rake::FileList["config/software/*.rb"]
omnibus_software_defs = Rake::FileList[File.join(Bundler.definition.specs["omnibus-software"][0].gem_dir, "config/software/*.rb")]
# ignore software definitions from omnibus-software that exist in project repo
project_defs = local_defs + omnibus_software_defs.delete_if do |software|
local_defs.include?(software.gsub(/.*(config\/software\/.*\.rb)/, '\1'))
end
Omnibus.software(
overrides,
*project_defs
)
desc "Print the name and version of all components"
task :versions do
puts Omnibus::Reports.pretty_version_map
end