Sha256: cb8124cfd0ea28d435e5fa73b0ab3b253085a082fe8383dae37fd7a2111c4335

Contents?: true

Size: 360 Bytes

Versions: 9

Compression:

Stored size: 360 Bytes

Contents

module ModuleSync
  # Faker is a top-level module to keep global faker config
  module Faker
    def self.working_directory=(path)
      @working_directory = path
    end

    def self.working_directory
      raise 'Working directory must be set' if @working_directory.nil?
      FileUtils.mkdir_p @working_directory
      @working_directory
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
modulesync-2.6.0 spec/helpers/faker.rb
modulesync-2.5.0 spec/helpers/faker.rb
modulesync-2.4.0 spec/helpers/faker.rb
modulesync-2.3.1 spec/helpers/faker.rb
modulesync-2.3.0 spec/helpers/faker.rb
modulesync-2.2.0 spec/helpers/faker.rb
modulesync-2.1.1 spec/helpers/faker.rb
modulesync-2.1.0 spec/helpers/faker.rb
modulesync-2.0.2 spec/helpers/faker.rb