Sha256: 1a74f557f94b5b1c74166405ff54e6fe6d24beeddb0780b6c562d816c308a320

Contents?: true

Size: 267 Bytes

Versions: 17

Compression:

Stored size: 267 Bytes

Contents

# frozen_string_literal: true

module RakeLeiningen
  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

17 entries across 17 versions & 1 rubygems

Version Path
rake_leiningen-0.39.0.pre.2 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.39.0.pre.1 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.38.0 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.37.0.pre.7 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.37.0.pre.6 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.37.0.pre.5 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.37.0.pre.4 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.37.0.pre.3 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.37.0.pre.2 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.37.0.pre.1 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.36.0 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.35.0.pre.2 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.35.0.pre.1 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.34.0 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.33.0.pre.5 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.33.0.pre.4 lib/rake_leiningen/mixins/directoried.rb
rake_leiningen-0.33.0.pre.3 lib/rake_leiningen/mixins/directoried.rb