24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/teber.rb', line 24
def example
begin
puts "\nWelcome to TEBER !!! \n\n"
source_directory = File.dirname(__FILE__) + "/../sample/."
destination_directory = Dir.pwd + "/Teber-Ruby/"
FileUtils.cp_r "#{source_directory}", "#{destination_directory}"
puts "\n\nInitialized sample testbdd project in #{destination_directory}\n\n"
puts "Follow the following steps to make sure everyting is setup in a right way:"
puts "1. Now Make sure to rename the project name from 'Teber-Ruby' to your 'Custom Name'"
puts "2. Navigate to your project and Do 'bundle install' before proceeding with the following step"
puts "3. For more info on how to work on this project verify https://nareshnavinash.github.io/Teber-Ruby/"
exit!
rescue Exception => e
puts e.message
puts e.backtrace
ensure
exit!
end
end
|