This file contains hidden or 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
#Output | |
#Jerome-Gagners-MacBook-Pro:amazon jgagner$ ruby bids.rb | |
#Current bid: 6, bid total 6, current max 0 | |
#Current bid: 6, bid total 12, current max 6 | |
#Current bid: 6, bid total 18, current max 12 | |
#Current bid: 3, bid total 12, current max 18 | |
#Accepted bids = 666 at 18 | |
#Current bid: 6, bid total 6, current max 0 | |
#Current bid: 5, bid total 10, current max 6 | |
#Current bid: 4, bid total 12, current max 10 |
This file contains hidden or 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
# A chef definition for installing kernel modules on ubuntu/debian. | |
define :kernel_module, :action => :install do | |
if params[:action] == :install | |
bash "modprobe #{params[:name]}" do | |
code "modprobe #{params[:name]}" | |
not_if "lsmod |grep #{params[:name]}" | |
end | |
bash "install #{params[:name]} in /etc/modules" do |