Sha256: 7593c2b6362f53e7b5ada0f2763114a0ea968a6f88aaa94f5a63f6afe85bdb07

Contents?: true

Size: 523 Bytes

Versions: 1

Compression:

Stored size: 523 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Ifd_Mobile-0.1.9 bin/generate.rb