From ddd160afb1fd2c729cf806de879add5a15cafe31 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 8 Apr 2015 18:14:09 -0700 Subject: added `leap history` command to dump the recent deploy history to console --- lib/leap_cli/remote/leap_plugin.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/leap_cli/remote/leap_plugin.rb') diff --git a/lib/leap_cli/remote/leap_plugin.rb b/lib/leap_cli/remote/leap_plugin.rb index af88c2a..c155097 100644 --- a/lib/leap_cli/remote/leap_plugin.rb +++ b/lib/leap_cli/remote/leap_plugin.rb @@ -60,6 +60,13 @@ module LeapCli; module Remote; module LeapPlugin run "touch #{Leap::Platform.init_path}" end + # + # dumps the recent deploy history to the console + # + def history + run "(test -s /var/log/leap/deploy-summary.log && tail /var/log/leap/deploy-summary.log) || (test -s /var/log/leap/deploy-summary.log.1 && tail /var/log/leap/deploy-summary.log.1) || (echo 'no history')" + end + # # This is a hairy ugly hack, exactly the kind of stuff that makes ruby # dangerous and too much fun for its own good. -- cgit v1.2.3 From b4d0e0e3b4bfa2436e3f76a591d5639819a4853b Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 4 May 2015 15:11:46 -0700 Subject: remove ruby-hiera-puppet from list of required packages (except for wheezy) closes #6918 --- lib/leap_cli/remote/leap_plugin.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/leap_cli/remote/leap_plugin.rb') diff --git a/lib/leap_cli/remote/leap_plugin.rb b/lib/leap_cli/remote/leap_plugin.rb index c155097..e425842 100644 --- a/lib/leap_cli/remote/leap_plugin.rb +++ b/lib/leap_cli/remote/leap_plugin.rb @@ -6,6 +6,10 @@ module LeapCli; module Remote; module LeapPlugin def required_packages + "puppet rsync lsb-release locales" + end + + def required_wheezy_packages "puppet ruby-hiera-puppet rsync lsb-release locales" end -- cgit v1.2.3