Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid trying to update YAML::ENGINE if it's not there

  • Loading branch information...
commit 3bf2332b1f6f010b7a5238585579e97fbe92108b 1 parent eede1a9
R. Tyler Croy authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 bin/blimpy
10 bin/blimpy
View
@@ -1,10 +1,14 @@
#!/usr/bin/env ruby
-require 'rubygems'
-require 'yaml'
# Need to force the psych engine since syck doesn't seem to serialize the
# OpenStack Floating IPs
-YAML::ENGINE.yamler = 'psych'
+begin
+ require 'rubygems'
+ require 'yaml'
+ YAML::ENGINE.yamler = 'psych'
+rescue NameError
+ # I don't think we have YAML::ENGINE until Ruby 1.9
+end
begin
require 'blimpy/cli'
Please sign in to comment.
Something went wrong with that request. Please try again.