Sha256: d2ba786c9c9545ec8254bb53d961e02899d6b32798c3603a4372a50520e42b46

Contents?: true

Size: 511 Bytes

Versions: 9

Compression:

Stored size: 511 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, **dependencies
          super(**dependencies)

          @rebuilder = rebuilder
        end

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

        private

        attr_reader :rebuilder
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sublime_text_kit-14.1.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-14.0.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-13.5.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-13.4.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-13.3.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-13.2.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-13.1.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-13.0.1 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-13.0.0 lib/sublime_text_kit/cli/actions/session.rb