Sha256: c08407db0c0f19a744869c2cdada2470193fbb033188a8f5aa6f396c47058c29

Contents?: true

Size: 232 Bytes

Versions: 9

Compression:

Stored size: 232 Bytes

Contents

module Fogged
  def self.with_directory(directory_name)
    old_resources = Fogged._resources
    Fogged._resources = Fogged.storage.directories.get(directory_name)
    yield
  ensure
    Fogged._resources = old_resources
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fogged-0.0.13 lib/fogged/with_directory.rb
fogged-0.0.12 lib/fogged/with_directory.rb
fogged-0.0.11 lib/fogged/with_directory.rb
fogged-0.0.10 lib/fogged/with_directory.rb
fogged-0.0.9 lib/fogged/with_directory.rb
fogged-0.0.8 lib/fogged/with_directory.rb
fogged-0.0.7 lib/fogged/with_directory.rb
fogged-0.0.6 lib/fogged/with_directory.rb
fogged-0.0.5 lib/fogged/with_directory.rb