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 | |
if [ -z $3 ]; then | |
echo "Usage: $0 <app> <image> <start command>" | |
exit 1 | |
fi | |
# Dockerhub details | |
echo "Login with your Docker ID." | |
echo -n "Username: " |
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
require "sinatra" | |
require "mysql2" | |
require "cf-autoconfig" | |
class HelloWorld < Sinatra::Base | |
get "/" do | |
"Hello, World!" | |
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
diff --git a/lib/cloud_controller/rest_controller/routes.rb b/lib/cloud_controller/rest_controller/routes.rb | |
index 532a302..0dcb6b3 100644 | |
--- a/lib/cloud_controller/rest_controller/routes.rb | |
+++ b/lib/cloud_controller/rest_controller/routes.rb | |
@@ -18,6 +18,7 @@ module VCAP::CloudController::RestController | |
blk.yield(api, *args) | |
end | |
end | |
+ puts "Defined route: '#{verb}' '#{path}' -> '#{klass}': '#{method.to_s}' / {#{blk.to_s}}" | |
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
x = { | |
:a => "a", | |
:b => "b", | |
:c => { | |
:x => "x", | |
:y => "y", | |
:z => { | |
:p => "p", | |
:q => "q", | |
} |