summaryrefslogtreecommitdiff
path: root/lib/leap_cli/remote/leap_plugin.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-05-05 15:49:07 -0700
committerelijah <elijah@riseup.net>2015-05-05 15:49:07 -0700
commit6c6b5a88f18f714924530d64486cb88c02bd7ee4 (patch)
tree3a663822de4c279da8287db04f0a42cfb2c407fb /lib/leap_cli/remote/leap_plugin.rb
parent51195b20531c4dcdf6a76e6a9a8ef7a771cf76be (diff)
parent61fdf41087b480db12720df5d5beadd32992475a (diff)
Merge branch 'develop'
Conflicts: lib/leap_cli/commands/db.rb lib/leap_cli/commands/vagrant.rb
Diffstat (limited to 'lib/leap_cli/remote/leap_plugin.rb')
-rw-r--r--lib/leap_cli/remote/leap_plugin.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/leap_cli/remote/leap_plugin.rb b/lib/leap_cli/remote/leap_plugin.rb
index af88c2a..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
@@ -61,6 +65,13 @@ module LeapCli; module Remote; module LeapPlugin
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.
#