Sha256: 68ed97b1034c0a0cecda86b2e60345cd71f98f07bb5e9d66c1a2d9e334a75092

Contents?: true

Size: 946 Bytes

Versions: 6

Compression:

Stored size: 946 Bytes

Contents

#!/usr/bin/env ruby

require 'fileutils'

frank_dir = File.join( FileUtils.pwd, "Frank" )

if File.exists?( frank_dir ) 
  puts "A Frank directory already exists. I won't overwrite it. Giving up."
  exit 1
else
  puts "I'm about to create a subdirectory called Frank which will contain the Frank server files and also your Cucumber tests. Please hit return to confirm that's what you want."
  exit 2 unless STDIN.gets.chomp == ''
end

FileUtils.mkdir_p( frank_dir )

source_dir = File.join( File.dirname(__FILE__), '..', 'frank-skeleton' )

FileUtils.cp_r( Dir.glob( source_dir+"/*" ), frank_dir )

puts <<-EOS
Frank subdirectory created.
Your next step is to create a Frankified target for your app, and add the libFrank.a and frank_static_resources.bundle files inside the Frank directory to that target.
After that, you can build the target and try executing 'cucumber' from the Frank directory to see how your initial cucumber test runs.
EOS

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
frank-cucumber-0.7.6 bin/frank-skeleton
frank-cucumber-0.7.5 bin/frank-skeleton
frank-cucumber-0.7.4 bin/frank-skeleton
frank-cucumber-0.7.3 bin/frank-skeleton
frank-cucumber-0.7.1 bin/frank-skeleton
frank-cucumber-0.7.0 bin/frank-skeleton