Sha256: adfdda594a6cf815d00903d618bbb692728124e214ad5b5087ab79c351864112

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

# Global requires
require '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 = JSON.parse(raw, :symbolize_names => 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.pre11 spec/helpers/blueprint_helper.rb