summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDaniel DeLeo <dan@opscode.com>2011-02-03 23:47:41 -0800
committerDaniel DeLeo <dan@opscode.com>2011-02-03 23:47:41 -0800
commit514c51cf35ccddb6accf8f5a60174649187b521c (patch)
treec9753462c815fe616d277e27f19a0f09006fa03e /Rakefile
parent5b59c478edda1491362d2de560758c3c95bd79eb (diff)
downloadchef-514c51cf35ccddb6accf8f5a60174649187b521c.tar.gz
update features infrastructure for chef-expander
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/Rakefile b/Rakefile
index 8b83123cce..720783f92b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -102,17 +102,14 @@ def start_chef_solr(type="normal")
end
end
-def start_chef_solr_indexer(type="normal")
+def start_chef_expander(type="normal")
@chef_solr_indexer = nil
- cid = fork
- if cid
- @chef_solr_indexer_pid = cid
- else
+ @chef_solr_indexer_pid = fork do
case type
when "normal"
- exec("./chef-solr/bin/chef-solr-indexer -l debug")
+ exec("./chef-expander/bin/chef-expander -n 1 -i 1 -l debug")
when "features"
- exec("./chef-solr/bin/chef-solr-indexer -c #{File.join(File.dirname(__FILE__), "features", "data", "config", "server.rb")} -l debug")
+ exec("./chef-expander/bin/chef-expander -c #{File.join(File.dirname(__FILE__), "features", "data", "config", "server.rb")} -l debug -n 1 -i 1")
end
end
end
@@ -245,8 +242,8 @@ namespace :dev do
end
desc "Start Chef Solr Indexer for testing"
- task :chef_solr_indexer do
- start_chef_solr_indexer("features")
+ task :chef_expander do
+ start_chef_expander("features")
wait_for_ctrlc
end
@@ -287,7 +284,7 @@ namespace :dev do
desc "Start Chef Solr Indexer"
task :chef_solr_indexer do
- start_chef_solr_indexer
+ start_chef_expander
wait_for_ctrlc
end