Sha256: e87b4d5809e022bad2a26bcba0a18fa05dec082029bcdcf425f78b762d9b3c36

Contents?: true

Size: 825 Bytes

Versions: 8

Compression:

Stored size: 825 Bytes

Contents

def awetestlib_android_setup
  if ARGV[1].nil?
    @proj_dir = "sample_android"
  else
    @proj_dir = ARGV[1]
  end

  @cucumber_dir = File.join(FileUtils.pwd, @proj_dir)
  @source_dir = File.join(File.dirname(__FILE__), '..', 'setup_samples', 'sample_android')

  if File.exists?(@cucumber_dir)
    puts "Android project directory already exists."
    exit 1
  end

  msg("Question") do
    puts "I'm about to create an android project named #{@proj_dir} in this directory"
    puts "Please hit return to confirm that's what you want."
    puts "Enter anything else and hit return to abort."
    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"
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
awetestlib-0.1.30pre3 bin/awetestlib-android-setup.rb
awetestlib-0.1.30pre3-x86-mingw32 bin/awetestlib-android-setup.rb
awetestlib-0.1.30pre2 bin/awetestlib-android-setup.rb
awetestlib-0.1.30pre2-x86-mingw32 bin/awetestlib-android-setup.rb
awetestlib-0.1.30pre1-x86-mingw32 bin/awetestlib-android-setup.rb
awetestlib-0.1.30pre1 bin/awetestlib-android-setup.rb
awetestlib-0.1.29 bin/awetestlib-android-setup.rb
awetestlib-0.1.29-x86-mingw32 bin/awetestlib-android-setup.rb