Sha256: b57a536c437abf960183684138703951e7431dd7a30794ab2ebdf6e5a4b88526
Contents?: true
Size: 619 Bytes
Versions: 45
Compression:
Stored size: 619 Bytes
Contents
# frozen_string_literal: true module ShopifyCLI module Theme class Syncer ## # ShopifyCLI::Theme::Syncer::StdReporter allows disabling/enabling # messages reported in the standard output (ShopifyCLI::Context#puts). # class StandardReporter attr_reader :ctx def initialize(ctx) @enabled = true @ctx = ctx end def disable! @enabled = false end def enable! @enabled = true end def report(message) ctx.puts(message) if @enabled end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems