Sha256: 4a7faf6c1f89c031ad62c42c65cfd00256305691508fceff8acbb39b63f69d87

Contents?: true

Size: 261 Bytes

Versions: 13

Compression:

Stored size: 261 Bytes

Contents

# frozen_string_literal: true

module RakeNPM
  module Mixins
    module Directoried
      def in_directory(directory, &block)
        if directory
          Dir.chdir(directory, &block)
        else
          block.call
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rake_npm-0.3.0.pre.2 lib/rake_npm/mixins/directoried.rb
rake_npm-0.3.0.pre.1 lib/rake_npm/mixins/directoried.rb
rake_npm-0.2.0 lib/rake_npm/mixins/directoried.rb
rake_npm-0.1.0.pre.18 lib/rake_npm/mixins/directoried.rb
rake_npm-0.1.0.pre.17 lib/rake_npm/mixins/directoried.rb
rake_npm-0.1.0.pre.16 lib/rake_npm/mixins/directoried.rb
rake_npm-0.1.0.pre.15 lib/rake_npm/mixins/directoried.rb
rake_npm-0.1.0.pre.14 lib/rake_npm/mixins/directoried.rb
rake_npm-0.1.0.pre.13 lib/rake_npm/mixins/directoried.rb
rake_npm-0.1.0.pre.12 lib/rake_npm/mixins/directoried.rb
rake_npm-0.1.0.pre.11 lib/rake_npm/mixins/directoried.rb
rake_npm-0.1.0.pre.10 lib/rake_npm/mixins/directoried.rb
rake_npm-0.1.0.pre.9 lib/rake_npm/mixins/directoried.rb