This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 (M=42a270) [email protected] ~/railapp/mapto> cap deploy:cold | |
triggering start callbacks for `deploy:cold' | |
* executing `multistage:ensure' | |
*** Defaulting to `staging' | |
* executing `staging' | |
* executing `deploy:cold' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' | |
updating the cached checkout on all servers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FasterCSV.open("tmp/vehicles.csv", "w") do |csv| | |
@vehicles = Vehicle.all | |
@vehicles.each do |object| | |
csv << object | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the Cat_Vehicle: | |
=> [#<CatVehicle Vehicle_Key: "2008~5~21~9", Vehicle_Year: "2008", Vehicle_Make: "CHEVROLET", Vehicle_Model: "COBALT", Vehicle_Engine: "4-134 2.2L DOHC", Vehicle_Id: 0>] | |
This is the Cat_Product: | |
=> #<CatProduct Product_Key: "2008~5~21~9", Product_Cat: "Electrical", Product_Group: "Alternators & Generators", Product_Part: "15828450", Product_Mfg: "ACD", Product_Desc: "NEW ALTERNATOR", Product_Xtd_Desc: "New Alternator", Product_Comments: "115 AMP GEN(K64)", Product_Special: ""> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deployer@jimapnwwwdevdev:/var/www/html/rapps/mapto_production/current$ top | |
top - 12:20:36 up 42 days, 2:14, 2 users, load average: 2.45, 2.39, 2.12 | |
Tasks: 109 total, 1 running, 108 sleeping, 0 stopped, 0 zombie | |
Cpu(s): 1.1%us, 5.4%sy, 0.0%ni, 47.0%id, 46.2%wa, 0.0%hi, 0.3%si, 0.0%st | |
Mem: 2057672k total, 2038208k used, 19464k free, 607252k buffers | |
Swap: 0k total, 0k used, 0k free, 877832k cached | |
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | |
808 mysql 20 0 263m 85m 2836 S 6 4.2 5883:18 mysqld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class VehiclePartImporter | |
def initialize options={} | |
@failed_links = [] | |
@errors = [] | |
@success_count = 0 | |
end | |
attr_accessor :errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 ############################# | |
19 ### Author: Bradley Price ### | |
20 ############################# | |
21 def does_robby_like_weiners? | |
22 weiners_as_in_dongs? ? (last_name == 'Clements' ? true : false) : false | |
23 end | |
24 | |
25 def last_name | |
26 'Clements' | |
27 end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
searchable do | |
text :name, :default_boost => 2 | |
text :description | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"<?xml version='1.0' ?><AccessRequest><AccessLicenseNumber>5C8FCA563C3B0528</AccessLicenseNumber><UserId>aptshipping</UserId><Password>Apt59441</Password></AccessRequest>" | |
"<?xml version='1.0' encoding='UTF-8' ?><VoidShipmentRequest><Request><RequestAction>Void</RequestAction><RequestOption>1</RequestOption></Request><ExpandedVoidShipment><ShipmentIdentificationNumber>383212</ShipmentIdentificationNumber><TrackingNumber>1Z2220060290602143</TrackingNumber></ExpandedVoidShipment></VoidShipmentRequest>" | |
"<?xml version=\"1.0\"?><VoidShipmentResponse><Response><TransactionReference></TransactionReference><ResponseStatusCode>0</ResponseStatusCode><ResponseStatusDescription>Failure</ResponseStatusDescription><Error><ErrorSeverity>Hard</ErrorSeverity><ErrorCode>190102</ErrorCode><ErrorDescription>No shipment found within the allowed void period</ErrorDescription></Error></Response></VoidShipmentResponse>" | |
options i'm passing {:key=>"5C8FCA563C3B0528", :login=>"aptshipping", :test=>true, :password=>"Apt59441"} | |
TES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID|Product_Key|Product_Cat|Product_Group|Product_Part|Product_Mfg|Product_Desc|Product_Xtd_Desc|Product_Comments|Product_Special | |
1|2012~17~33~35|Ignition & Engine Filters|Engine Filters & PCV|P3875|BOS|CABIN AIR FILTER|Cabin Air Filter|NULL|NULL | |
2|2012~17~33~35|Ignition & Engine Filters|Engine Filters & PCV|P3875WS|BOS|CABIN AIR FILTER|Cabin Air Filter|NULL|NULL |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81204 | |
81206 | |
81207 | |
81208 | |
81209 | |
81210 | |
81211 | |
81212 | |
81216 | |
81221 |
OlderNewer