Sha256: c3475ab8e0ae5e0011e411e106a85e760b3411cfedfce4cc64eec37e0540f014

Contents?: true

Size: 689 Bytes

Versions: 5

Compression:

Stored size: 689 Bytes

Contents

ComputationCarrierRegion.class_eval do
  data_miner do
    schema Earth.database_options do
      string 'name'
      string 'computation_carrier_name'
      string 'region'
      string 'egrid_subregion_abbreviation'
    end
    
    import "a list of computation carrier regions",
           :url => 'https://spreadsheets.google.com/pub?key=0AkCJNpm9Ks6JdGFEU1gtVzFPeS0tV1VnR05WZ2ZFUVE&gid=0&output=csv' do
      key   'name'
      store 'computation_carrier_name'
      store 'region'
      store 'egrid_subregion_abbreviation'
    end
    
    # FIXME TODO verify carrier_name appears in Carrier
    # FIXME TODO verify egrid_subregion_abbreviation appears in EgridSubregion
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
earth-0.5.0 lib/earth/computation/computation_carrier_region/data_miner.rb
earth-0.4.12 lib/earth/computation/computation_carrier_region/data_miner.rb
earth-0.4.11 lib/earth/computation/computation_carrier_region/data_miner.rb
earth-0.4.10 lib/earth/computation/computation_carrier_region/data_miner.rb
earth-0.4.9 lib/earth/computation/computation_carrier_region/data_miner.rb