Sha256: 6043ad50602b76109ba5a3f6a80b2d38f2a7f9689fb2c165d819daf0691cbea3

Contents?: true

Size: 394 Bytes

Versions: 17

Compression:

Stored size: 394 Bytes

Contents

# encoding: UTF-8

# 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

17 entries across 17 versions & 1 rubygems

Version Path
gooddata-0.6.18 spec/helpers/blueprint_helper.rb
gooddata-0.6.17 spec/helpers/blueprint_helper.rb
gooddata-0.6.16 spec/helpers/blueprint_helper.rb
gooddata-0.6.15 spec/helpers/blueprint_helper.rb
gooddata-0.6.14 spec/helpers/blueprint_helper.rb
gooddata-0.6.13 spec/helpers/blueprint_helper.rb
gooddata-0.6.12 spec/helpers/blueprint_helper.rb
gooddata-0.6.11 spec/helpers/blueprint_helper.rb
gooddata-0.6.10 spec/helpers/blueprint_helper.rb
gooddata-0.6.9 spec/helpers/blueprint_helper.rb
gooddata-0.6.8 spec/helpers/blueprint_helper.rb
gooddata-0.6.7 spec/helpers/blueprint_helper.rb
gooddata-0.6.6 spec/helpers/blueprint_helper.rb
gooddata-0.6.5 spec/helpers/blueprint_helper.rb
gooddata-0.6.4 spec/helpers/blueprint_helper.rb
gooddata-0.6.3 spec/helpers/blueprint_helper.rb
gooddata-0.6.2 spec/helpers/blueprint_helper.rb