Sha256: 002998982d275dbd835c2f3b8e76d61f15f4748956c7838c378492b5edd64a97

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

module SublimeTextKit
  module CLI
    module Actions
      # Handles session action.
      class Session
        include SublimeTextKit::Import[:logger]

        def initialize(rebuilder: Sessions::Rebuilder.new, **)
          super(**)
          @rebuilder = rebuilder
        end

        def call
          rebuilder.call
          logger.info "Session rebuilt."
        end

        private

        attr_reader :rebuilder
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sublime_text_kit-14.2.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-14.1.2 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-14.1.1 lib/sublime_text_kit/cli/actions/session.rb