Sha256: b861d8d5bcd6f6f0ca448494a8911bde7e8fefc5d020f16f5607db0743787537

Contents?: true

Size: 814 Bytes

Versions: 24

Compression:

Stored size: 814 Bytes

Contents

def calabash_scaffold
  if File.exists?(@features_dir)
    puts "A features directory already exists. Stopping..."
    #puts "Run calabash-ios update for update instructions."
    exit 1
  end
  msg("Question") do
    puts "I'm about to create a subdirectory called features."
    puts "features will contain all your calabash 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)
  FileUtils.mv "#{@features_dir}/.irbrc", "."
  FileUtils.mv "#{@features_dir}/irb_ios4.sh", "."
  FileUtils.mv "#{@features_dir}/irb_ios5.sh", "."

  msg("Info") do
    puts "Features subdirectory created. \n"
    puts "Make sure you've build your -cal scheme in XCode and "
    puts "try executing \n\ncucumber"
  end

end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
testautoi-0.9.127 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.127.pre1 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.126 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.125 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.124 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.123 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.122 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.121 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.120 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.119 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.118 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.117 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.116 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.115 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.113 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.112 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.111 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.111.pre bin/calabash-ios-generate.rb
calabash-cucumber-0.9.110 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.109 bin/calabash-ios-generate.rb