Sha256: 4ec3fd7cd130f0658249d5ac788d46b6373e9b95d3feb49a43b6d4bb8bd171ad

Contents?: true

Size: 503 Bytes

Versions: 14

Compression:

Stored size: 503 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

14 entries across 14 versions & 1 rubygems

Version Path
Ifd_Mobile-1.5.0 bin/generate.rb
Ifd_Mobile-1.3.0 bin/generate.rb
Ifd_Mobile-1.2.0 bin/generate.rb
Ifd_Mobile-1.1.0 bin/generate.rb
Ifd_Mobile-1.0.0 bin/generate.rb
Ifd_Mobile-0.1.8 bin/generate.rb
Ifd_Mobile-0.1.7 bin/generate.rb
Ifd_Mobile-0.1.6 bin/generate.rb
Ifd_Mobile-0.1.5 bin/generate.rb
Ifd_Mobile-0.1.4 bin/generate.rb
Ifd_Mobile-0.1.3 bin/generate.rb
Ifd_Mobile-0.1.2 bin/generate.rb
Ifd_Mobile-0.1.1 bin/generate.rb
Ifd_Mobile-0.1.0 bin/generate.rb