bin/toaster in cloud-toaster-1.1.2 vs bin/toaster in cloud-toaster-1.1.3
- old
+ new
@@ -6,12 +6,19 @@
# some global/constant variables
REQUIRED_CONFIGS = {"db.host" => "Database host"}
ROOT_DIR = File.join(File.dirname(File.expand_path(__FILE__)), "..")
+# call bundler
+require "rubygems"
+require "bundler/setup"
+# bug fix for ruby 1.9+
+require 'dl/import'
+DL::Importable = DL::Importer
+Bundler.require(:default)
+
# requires
$LOAD_PATH << File.join(ROOT_DIR, "lib")
-require "rubygems"
require "toaster/api.rb"
# util functions
def install_chef()
existing = `which chef-solo 2> /dev/null`