resources/load_hearthstone_cards.rb in flare-up-0.8 vs resources/load_hearthstone_cards.rb in flare-up-0.9

- old
+ new

@@ -5,10 +5,10 @@ table_name = 'hearthstone_cards' data_source = 's3://slif-redshift/hearthstone_cards_short_list.csv' conn = FlareUp::Connection.new(host_name, db_name, ENV['REDSHIFT_USERNAME'], ENV['REDSHIFT_PASSWORD']) -copy = FlareUp::CopyCommand.new(table_name, data_source, ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']) +copy = FlareUp::Command::Copy.new(table_name, data_source, ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']) copy.columns = %w(name cost attack health description) copy.options = "REGION 'us-east-1' CSV" result = copy.execute(conn) \ No newline at end of file