bin/generate.rb in Ifd_Mobile-1.4.0 vs bin/generate.rb in Ifd_Mobile-1.5.0

- old
+ new

@@ -1,20 +1,20 @@ - -def ifd_mobile_scaffold - if File.exists?(@features_dir) - puts "A features directory already exists. Stopping..." - exit 1 - end - # msg("Question") do - # puts "I'm about to create a subdirectory called features." - # puts "features will contain all your project tests." - # puts "Please hit return to confirm that's what you want." - # end - # exit 2 unless STDIN.gets.chomp == '' - - FileUtils.cp_r(@source_dir, @features_dir) - - msg("Info") do - puts "features subdirectory created. \n" - end - -end + +def ifd_mobile_scaffold + if File.exists?(@features_dir) + puts "A features directory already exists. Stopping..." + exit 1 + end + msg("Question") do + puts "I'm about to create a subdirectory called features." + puts "features will contain all your project tests." + puts "Please hit return to confirm that's what you want." + end + exit 2 unless STDIN.gets.chomp == '' + + FileUtils.cp_r(@source_dir, @features_dir) + + msg("Info") do + puts "features subdirectory created. \n" + end + +end