Sha256: 2477893fd0444d9bbca19339857f324d045f109393b9f1be9102899d7d759f4d

Contents?: true

Size: 896 Bytes

Versions: 68

Compression:

Stored size: 896 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 "Try executing \n\nDEVICE=iphone OS=ios5 cucumber"
    puts "\n (replace ios5 with ios4 if running iOS 4.x simulator.\nReplace iphone with ipad if running iPad simulator.).\n"
  end

end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
calabash-cucumber-0.9.80.pre.2 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.80.pre.1 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.74 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.72 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.70 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.68 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.67 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.66 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.65 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.63 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.62 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.61 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.60 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.54 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.53 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.51 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.50 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.49 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.48 bin/calabash-ios-generate.rb
calabash-cucumber-0.9.47 bin/calabash-ios-generate.rb