Sha256: 95568b4b7ac7a287a6aa747008ad601d42ebdf1d14aac59b7368b2d3bad829f3
Contents?: true
Size: 410 Bytes
Versions: 5
Compression:
Stored size: 410 Bytes
Contents
module Perus::Pinger class Upgrade < Command description 'Upgrades Perus on the client machine' option :sudo, default: false def run if options.sudo result = shell('sudo gem upgrade perus') else result = shell('gem upgrade perus') end result.include?('ERROR') ? result : true end end end
Version data entries
5 entries across 5 versions & 1 rubygems