Sha256: 0efad2cfe1d5dcaa6520509e2a664c1f051f8d98f52bd1b94c1d4ad4c03a18a7

Contents?: true

Size: 896 Bytes

Versions: 2

Compression:

Stored size: 896 Bytes

Contents

require 'optparse'
require 'find'
require 'fileutils'

require_relative 'swift_lib_templater/copy_template_command.rb'
require_relative 'swift_lib_templater/get_framework_name_command.rb'
require_relative 'swift_lib_templater/rename_files_command.rb'
require_relative 'swift_lib_templater/initialize_git_repository_command.rb'

def systemWithoutOutput(command)
	system command
end

module SwiftLibTemplater
	begin
		puts "Framework name ?"
		project_name = GetFrameworkNameCommand.new.execute

		project_dest = Dir.pwd
		project_folder = File.expand_path("#{project_dest}/#{project_name}")

		print "\nGenerating files... "
		CopyTemplateCommand.new(project_folder).execute
		RenameFilesCommand.new(project_folder, project_name).execute
		puts "āœ…"

		puts "\nProject #{project_name} successfully bootstraped ! šŸŽ‰"
	rescue  => e
		puts "\n\nšŸšØ Failed with error:"
		puts e.message
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
swift_lib_templater-1.0.3 lib/swift_lib_templater.rb
swift_lib_templater-1.0.2 lib/swift_lib_templater.rb