From 6e5d404bdd1a8f56fdfb0eee865f9029ae12b616 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 12 Dec 2012 22:40:59 -0800 Subject: auto compile before deploy (as needed) --- lib/leap_cli/commands/compile.rb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'lib/leap_cli/commands/compile.rb') diff --git a/lib/leap_cli/commands/compile.rb b/lib/leap_cli/commands/compile.rb index 45e4f2b..df2149d 100644 --- a/lib/leap_cli/commands/compile.rb +++ b/lib/leap_cli/commands/compile.rb @@ -5,15 +5,19 @@ module LeapCli desc 'Compiles node configuration files into hiera files used for deployment' command :compile do |c| c.action do |global_options,options,args| - # these must come first - update_compiled_ssh_configs - - # export generated files - manager.export_nodes - manager.export_secrets + compile_hiera_files end end + def compile_hiera_files(nodes=nil) + # these must come first + update_compiled_ssh_configs + + # export generated files + manager.export_nodes(nodes) + manager.export_secrets + end + def update_compiled_ssh_configs update_authorized_keys update_known_hosts -- cgit v1.2.3