Sha256: 0b53017ab2741d3df3dc18fda23ded6d35c623a71b76f2d55a94e59a61dc5485

Contents?: true

Size: 237 Bytes

Versions: 15

Compression:

Stored size: 237 Bytes

Contents

require 'fileutils'

module Generators
  module FileHelpers
    def create_file_with_content(path, content)
      FileUtils.mkdir(File.dirname(path))
      File.open(path, 'w') do |f|
        f.write(content)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
graphql_devise-0.11.4 spec/support/generators/file_helpers.rb
graphql_devise-0.11.3 spec/support/generators/file_helpers.rb
graphql_devise-0.11.2 spec/support/generators/file_helpers.rb
graphql_devise-0.11.1 spec/support/generators/file_helpers.rb
graphql_devise-0.11.0 spec/support/generators/file_helpers.rb
graphql_devise-0.10.1 spec/support/generators/file_helpers.rb
graphql_devise-0.10.0 spec/support/generators/file_helpers.rb
graphql_devise-0.9.2 spec/support/generators/file_helpers.rb
graphql_devise-0.9.1 spec/support/generators/file_helpers.rb
graphql_devise-0.9.0 spec/support/generators/file_helpers.rb
graphql_devise-0.8.1 spec/support/generators/file_helpers.rb
graphql_devise-0.8.0 spec/support/generators/file_helpers.rb
graphql_devise-0.7.0 spec/support/generators/file_helpers.rb
graphql_devise-0.6.0 spec/support/generators/file_helpers.rb
graphql_devise-0.5.0 spec/support/generators/file_helpers.rb