jhsu802701/generic_gem

View on GitHub
bin/generic_gem

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby

require 'generic_gem'

puts '***********************'
puts 'Welcome to Generic Gem!'
puts
puts 'DEFAULT VALUE: tmp1'
puts 'Enter the name of the gem you wish to create:'
subdir_name = gets.chomp
subdir_name = 'tmp1' if subdir_name == ''

system('sh generic_gem/credentials.sh')

GenericGem.create(subdir_name)
system("cd #{subdir_name} && sh gem_test.sh")

puts
puts '******************************'
puts 'Your new gem is ready to roll.'
puts "GEM NAME: #{subdir_name}"
puts
puts "There is a list of additional steps in the #{subdir_name}/README-to_do.txt file."
puts