lib/cknife/config.rb in cknife-0.1.8 vs lib/cknife/config.rb in cknife-1.1.0
- old
+ new
@@ -1,7 +1,8 @@
require 'action_view'
require 'pathname'
+require 'yaml'
module CKnife
class Formatter
include ActionView::Helpers::TagHelper
include ActionView::Helpers::TextHelper
@@ -27,10 +28,10 @@
if config_file
begin
@config.merge!(YAML.load(config_file.read))
rescue
- say ("Found, but could not parse config: #{config_file}")
+ puts "Found, but could not parse config: #{config_file}"
end
end
@config
end