Sha256: eb769e11e7597439b1703e205246b31b13c771343ddfc53337faeb7d519ef964

Contents?: true

Size: 524 Bytes

Versions: 11

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

module SublimeTextKit
  module CLI
    module Actions
      # Handles session action.
      class Session
        def initialize rebuilder: Sessions::Rebuilder.new, container: Container
          @rebuilder = rebuilder
          @container = container
        end

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

        private

        attr_reader :rebuilder, :container

        def logger = container[__method__]
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sublime_text_kit-12.3.2 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-12.3.1 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-12.3.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-12.2.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-12.1.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-12.0.1 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-12.0.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-11.0.3 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-11.0.2 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-11.0.1 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-11.0.0 lib/sublime_text_kit/cli/actions/session.rb