Sha256: 8fc89c714a216798118397c613f20238b861ddd0285433b2c7135e1508ea1a7d

Contents?: true

Size: 831 Bytes

Versions: 3

Compression:

Stored size: 831 Bytes

Contents

def awetestlib_cucumber_setup
  @cucumber_dir = File.join(FileUtils.pwd, "sample_cucumber")
  @source_dir = File.join(File.dirname(__FILE__), '..', 'setup_samples', 'sample_cucumber')

  if File.exists?(@cucumber_dir)
    puts "Sample Cucumber features directory already exists."
    exit 1
  end

  msg("Question") do
    puts "I'm about to create a sample cucumber feature in this directory"
    puts "Please hit return to confirm that's what you want."
    puts "NOTE: You may need to run this command as an administrator."
  end
  exit 2 unless STDIN.gets.chomp == ''
  FileUtils.cp_r(@source_dir, @cucumber_dir)
  msg("Info") do
    puts "Configuring files and settings"
    puts "From the sample_cucumber/features folder, you may now run command below:"
    puts "cucumber yahoo_mail.feature"
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
awetestlib-0.1.12-x86-mingw32 bin/awetestlib-cucumber-setup.rb
awetestlib-0.1.11-x86-mingw32 bin/awetestlib-cucumber-setup.rb
awetestlib-0.1.10-x86-mingw32 bin/awetestlib-cucumber-setup.rb