22 lines
568 B
Ruby
Executable File
22 lines
568 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
# Need to force the psych engine since syck doesn't seem to serialize the
|
|
# OpenStack Floating IPs
|
|
begin
|
|
require 'rubygems'
|
|
require 'yaml'
|
|
YAML::ENGINE.yamler = 'psych'
|
|
rescue NameError
|
|
# I don't think we have YAML::ENGINE until Ruby 1.9
|
|
end
|
|
|
|
$:.unshift File.expand_path(File.dirname(__FILE__) + '/../lib/')
|
|
require 'blimpy/cli'
|
|
|
|
# allow monkey-patching of Blimpy by the project (mainly to add more commands)
|
|
blimprc = File.join(Dir.pwd,"Blimprc")
|
|
Blimpy.load_file File.open(blimprc).read if File.exists? blimprc
|
|
|
|
Blimpy::CLI.start
|
|
exit 0
|
|
|