From b5bf2fe3874f9ce97b36dc37b17ce66270260f03 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 27 Nov 2012 01:40:01 -0800 Subject: improved logging all around. --- lib/leap_cli/commands/deploy.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/leap_cli/commands') diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb index 84c7846..63e6c73 100644 --- a/lib/leap_cli/commands/deploy.rb +++ b/lib/leap_cli/commands/deploy.rb @@ -24,9 +24,11 @@ module LeapCli ssh.leap.chown_root("/srv/leap") # sync hiera conf - ssh.leap.rsync_update do |server| - node = manager.node(server.host) - {:source => Path.named_path([:hiera, node.name]), :dest => "/etc/leap/hiera.yaml"} + ssh.leap.log :updating, "hiera.yaml" do + ssh.leap.rsync_update do |server| + node = manager.node(server.host) + {:source => Path.named_path([:hiera, node.name]), :dest => "/etc/leap/hiera.yaml"} + end end # sync puppet -- cgit v1.2.3