Sha256: 74619594c0e79663e0488eb9bf960048880f5abe342fa44a3c67da693a9d0019

Contents?: true

Size: 581 Bytes

Versions: 20

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Rebuild session metadata."

        on %w[-S --session]

        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

20 entries across 20 versions & 1 rubygems

Version Path
sublime_text_kit-17.6.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-17.5.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-17.4.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-17.3.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-17.2.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-17.1.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-17.0.1 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-17.0.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-16.5.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-16.3.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-16.2.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-16.1.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-16.0.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-15.2.1 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-15.2.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-15.1.0 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-15.0.3 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-15.0.2 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-15.0.1 lib/sublime_text_kit/cli/actions/session.rb
sublime_text_kit-15.0.0 lib/sublime_text_kit/cli/actions/session.rb