Permalink
Browse files

Add bin/console script

  • Loading branch information...
Mark Rushakoff and Max Brunsfeld
Mark Rushakoff and Max Brunsfeld committed May 4, 2013
1 parent b4c04b8 commit fbd95f94f99e0d461383ca133d1c56ce8d8f06e0
Showing with 21 additions and 0 deletions.
  1. +6 −0 README.md
  2. +3 −0 bin/console
  3. +12 −0 lib/cloud_controller/console.rb
View
@@ -60,6 +60,12 @@ variable to test against postgres and mysql. Examples:
Travis currently runs 3 build jobs against sqlite, postgres, and mysql.
+## Development
+
+To run an interactive console with the cloud controller code loaded:
+
+ bin/console
+
## Logs
Cloud Controller uses [Steno](http://github.com/cloudfoundry/steno) to manage its logs.
View
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+irb -I . -r lib/cloud_controller/console
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+
+$:.unshift(File.expand_path("../../../lib", __FILE__))
+
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __FILE__)
+
+require "rubygems"
+require "bundler/setup"
+require "cloud_controller"
+require "irb/completion"
+
+VCAP::CloudController::Runner.new(ARGV).send(:start_cloud_controller)

0 comments on commit fbd95f9

Please sign in to comment.