Sha256: d848ea784beb4478a3259e5a8d69cd679f92b5a3c502eb46de6ef68fc52004a4
Contents?: true
Size: 396 Bytes
Versions: 3
Compression:
Stored size: 396 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 = `sudo gem upgrade perus` else result = `gem upgrade perus` end result.include?('ERROR') ? result : true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
perus-0.1.2 | lib/perus/pinger/commands/upgrade.rb |
perus-0.1.1 | lib/perus/pinger/commands/upgrade.rb |
perus-0.1.0 | lib/perus/pinger/commands/upgrade.rb |