Sha256: 22e7a9372902469f35013876feef1e01459276a3ffab90687729958506c52a9d
Contents?: true
Size: 785 Bytes
Versions: 1
Compression:
Stored size: 785 Bytes
Contents
# frozen_string_literal: true require_relative "snapshot_ui/snapshot" require_relative "snapshot_ui/configuration" module SnapshotUI DEFAULT_CONFIGURATION = { project_root_directory: ".", storage_directory: "tmp/snapshot_ui", web_url: "http://localhost:3000/ui/snapshots" }.freeze def self.configure yield(configuration) end def self.configuration @configuration ||= Configuration.new(**DEFAULT_CONFIGURATION) end def self.snapshot_taking_enabled? %w[1 true].include?(ENV["TAKE_SNAPSHOTS"]) end def self.publish_snapshots_in_progress Snapshot.publish_snapshots_in_progress end def self.clear_snapshots_in_progress Snapshot.clear_snapshots_in_progress end def self.clear_snapshots Snapshot.clear_snapshots end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
snapshot_ui-0.2.0 | lib/snapshot_ui.rb |