Sha256: 8032b14d6e32c628d37796af9aa0a5d6860780d68231ccfb87b05aa86ad11b95
Contents?: true
Size: 327 Bytes
Versions: 18
Compression:
Stored size: 327 Bytes
Contents
module ViewDefinitionHelpers def with_view_definition(name, version, schema) definition = Scenic::Definition.new(name, version) FileUtils.mkdir_p(File.dirname(definition.full_path)) File.open(definition.full_path, "w") { |f| f.write(schema) } yield ensure FileUtils.rm_f(definition.full_path) end end
Version data entries
18 entries across 18 versions & 2 rubygems