Sha256: 04135affc710f139300d4bd058fd9953aae38518cdd7ff2ff4717b2badb7ea7e
Contents?: true
Size: 375 Bytes
Versions: 1
Compression:
Stored size: 375 Bytes
Contents
# Global requires require 'multi_json' # Local requires require 'gooddata/models/models' module BlueprintHelper def blueprint_from_file(bp) # Try to load as full path raw = IO.read(bp) # TODO: Try to load as relative path if failed parsed = MultiJson.load(raw, :symbolize_keys => true) return GoodData::Model::ProjectBlueprint.new(parsed) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.0 | spec/helpers/blueprint_helper.rb |