# encoding: utf-8 module LocalPac module Actions class ReloadLocalStorage private attr_reader :local_storage, :sinatra_apps public def initialize(sinatra_apps, local_storage = LocalStorage.new) @sinatra_apps = Array(sinatra_apps) @local_storage = local_storage end def run sinatra_apps.each { |app| app.set :local_storage, local_storage } end end end end