From fa4852e03c3596ff24eeb8fec1148716d04d246a Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 22 Aug 2018 17:25:06 -0700 Subject: Make rake install install both chef and chef-config A simple way to make it reach back to call rake install on chef-config first. Signed-off-by: Tim Smith --- Rakefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 982af3f11c..32a688ef7f 100644 --- a/Rakefile +++ b/Rakefile @@ -23,7 +23,16 @@ require_relative "tasks/cbgb" require_relative "tasks/dependencies" require_relative "tasks/announce" -Bundler::GemHelper.install_tasks name: 'chef' +# hack the chef-config install to runon before the traditional install task +task :super_install do + chef_config_path = ::File.join(::File.dirname(__FILE__), "chef-config") + Dir.chdir(chef_config_path) + sh("rake install") +end + +task :install => :super_install + +Bundler::GemHelper.install_tasks name: "chef" task :pedant, :chef_zero_spec -- cgit v1.2.1