Commit be0ee35a authored by Francis Chong's avatar Francis Chong

load yaml only when needed

parent 92c1befe
require 'fileutils' require 'fileutils'
require 'yaml'
module Pod module Pod
class Command class Command
...@@ -59,6 +58,7 @@ module Pod ...@@ -59,6 +58,7 @@ module Pod
end end
def check_versions(dir) def check_versions(dir)
require 'yaml'
bin_version = Gem::Version.new(VERSION) bin_version = Gem::Version.new(VERSION)
yaml_file = dir + 'CocoaPods-version.yml' yaml_file = dir + 'CocoaPods-version.yml'
return unless yaml_file.exist? return unless yaml_file.exist?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment