Sha256: 4e1f10ff4d5d34cd7a8db5cb630994bcbcbf4c6b1e2b814b87b7df8ca72d28b0
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
module Wordmove class Doctor class Wpcli attr_reader :logger def initialize @logger = Logger.new(STDOUT).tap { |l| l.level = Logger::INFO } end def check! logger.task "Checking local wp-cli installation" if system('wp cli check-update --quiet') logger.success "wp-cli is correctly installed and up to date" else logger.error "wp-cli is not installed (or not in your $PATH) or not up to date" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wordmove-2.3.0 | lib/wordmove/doctor/wpcli.rb |