Sha256: 47b055dfccbf595dac73e5851883d181133158f91fd6e4a03bcf4b93dc550dd6
Contents?: true
Size: 707 Bytes
Versions: 16
Compression:
Stored size: 707 Bytes
Contents
BusFuelYearControl.class_eval do data_miner do process "Ensure BusFuelControl is populated" do BusFuelControl.run_data_miner! end import "a list of bus fuel year controls", :url => 'https://spreadsheets.google.com/pub?key=0AoQJbWqPrREqdGhHQkZPZW4zbXYzZ3NkYThBWnQ2QXc&gid=0&output=csv' do key 'name' store 'bus_fuel_name' store 'year' store 'control' store 'total_travel_percent' end process "Derive bus fuel control name for association with BusFuelControl" do update_all "bus_fuel_control_name = bus_fuel_name || ' ' || control" end # FIXME TODO verify that for any year the percentages sum to 1 end end
Version data entries
16 entries across 16 versions & 1 rubygems