lib/cdq/generators.rb in cdq-0.1.8 vs lib/cdq/generators.rb in cdq-0.1.9

- old
+ new

@@ -1,6 +1,7 @@ +require 'fileutils' module CDQ class Generator def initialize(options = nil) @dry_run = true if options == 'dry_run' @@ -55,10 +56,10 @@ if Dir.exist?(@in_app_path) puts " Using existing directory: #{@in_app_path}" else puts " \u0394 Creating directory: #{@in_app_path}" - Dir.mkdir(@in_app_path) unless @dry_run + FileUtils.mkdir_p(@in_app_path) unless @dry_run end results = load_and_parse_erb(template_file_path_and_name) if File.exists?(@new_file_path_name)