Sha256: cc464643edb574d2fd99af75cc7606624c018ba166189999f07fa1c222685e0d

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Bhook
  class Workspaces
    extend T::Sig

    sig { void }
    def initialize
      @workspaces = T.let([], T::Array[Bhook::Workspace])
    end

    sig { params(workspace: Workspace).void }
    def mount(workspace)
      @workspaces << workspace
    end

    sig { void }
    def process!
      @workspaces.each(&:process!)
    end

    sig { void }
    def watch!
      @workspaces.each(&:watch!)
      Kernel.sleep
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bhook-0.3.2 lib/bhook/workspaces.rb
bhook-0.3.1 lib/bhook/workspaces.rb
bhook-0.3.0 lib/bhook/workspaces.rb