Here is a description of the steps I took to cause knife bootstrap
to exit with error when the remote bootstrap process fails. I was
already calling the bootstrap programmatically (because I was adding a lot
of business logic to it) so I didn't patch the bootstrap class but
pulled out the pieces I needed.
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
;;; All Kinds of Destructuring ;;; | |
(let [foo 1] foo) | |
; => 1 | |
(let [[foo bar] [1 2 3]] [foo bar]) | |
; => [1 2] | |
(let [[foo bar & baz] [1 2 3]] [foo bar baz]) | |
; => [1 2 (3)] |
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
#!/bin/bash | |
# Copied from Gary Bernhardt (destroyallsoftware.com) dot files repository. | |
# | |
# Log output: | |
# | |
# * 51c333e (12 days) <Gary Bernhardt> add vim-eunuch | |
# | |
# The time massaging regexes start with ^[^<]* because that ensures that they | |
# only operate before the first "<". That "<" will be the beginning of the |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Testing ToolTips</title> | |
<link href="bootstrap.css" media="screen" rel="stylesheet" type="text/css" /> | |
<script src="jquery.js" type="text/javascript"></script> | |
<script src="bootstrap.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("#alink").tooltip({title: "See this"}); |
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
role :servers, "server1", "server2" | |
set :user, 'ubuntu' | |
def stop_load_balancer | |
run "echo service registerelb stop" | |
end | |
def start_load_balancer | |
run "echo service registerelb start" | |
end |