Sha256: 7d7374c00c7cdcac6eef79ec52f219fbae1298227d66abf3cd7140dc0f5ec9b9

Contents?: true

Size: 809 Bytes

Versions: 3

Compression:

Stored size: 809 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 bin/awetestlib-cucumber-setup.rb
awetestlib-0.1.11 bin/awetestlib-cucumber-setup.rb
awetestlib-0.1.10 bin/awetestlib-cucumber-setup.rb