diff options
author | elijah <elijah@riseup.net> | 2016-02-24 13:12:49 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-02-24 13:12:49 -0800 |
commit | d135e5594ba3e0595a92edc43f32c7c92bafef8a (patch) | |
tree | ed5797cb0156ae68986f2b942b2916bba5c082f4 | |
parent | dc615fb5ff9a754cf690ebdcd5c1f7593e3fc748 (diff) | |
parent | e26e2d2c43de0eb0e43193a05b608c34c1ac57a4 (diff) |
Merge branch 'develop' of ssh://leap.se/leap_cli into develop
-rw-r--r-- | lib/leap_cli/remote/leap_plugin.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/leap_cli/remote/leap_plugin.rb b/lib/leap_cli/remote/leap_plugin.rb index 50f759e..b48f433 100644 --- a/lib/leap_cli/remote/leap_plugin.rb +++ b/lib/leap_cli/remote/leap_plugin.rb @@ -67,8 +67,9 @@ module LeapCli; module Remote; module LeapPlugin # # 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')" + def history(lines) + command = "(test -s /var/log/leap/deploy-summary.log && tail -n #{lines} /var/log/leap/deploy-summary.log) || (test -s /var/log/leap/deploy-summary.log.1 && tail -n #{lines} /var/log/leap/deploy-summary.log.1) || (echo 'no history')" + run command end # |