Sha256: 9f30399d8fb8aa5627e57ea60a31d0fe5f234bdff6e4f266720c4621be9c86f3

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

module PointRb
  module Actions
    class RetrieveLayoutFiles
      def initialize(app)
        @app = app
      end

      def call(env)
        layout_storage_manager = PointRb::LayoutStorageManager.new(env.layout_directory)
        env.layout_files = layout_storage_manager.retrieve_all

        @app.call(env)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pointrb-0.1.2 lib/pointrb/actions/retrieve_layout_files.rb
pointrb-0.1.1 lib/pointrb/actions/retrieve_layout_files.rb
pointrb-0.1.0 lib/pointrb/actions/retrieve_layout_files.rb