lib/shellplay/config.rb in shellplay-0.0.8 vs lib/shellplay/config.rb in shellplay-0.0.9

- old
+ new

@@ -1,15 +1,16 @@ require 'cliprompt' require 'configstruct' +require 'fileutils' module Shellplay class Config < ConfigStruct include Cliprompt def initialize(options = nil, input = STDIN, output = STDOUT) confdir = File.join(ENV['HOME'], '.shellplay') - FileUtils.mkdir_p confdir unless Dir.exist? confdir + FileUtils::mkdir_p confdir unless Dir.exist? confdir super(options = nil, input = STDIN, output = STDOUT) end def set_defaults default :basedir, File.join(ENV['HOME'], '.shellplay')