lib/yk_command/project/setup/TemplateConfigurator.rb in yk_command-0.5.7 vs lib/yk_command/project/setup/TemplateConfigurator.rb in yk_command-0.5.8

- old
+ new

@@ -1,24 +1,25 @@ require 'fileutils' require 'colored2' require_relative 'MessageBank' require_relative 'ConfigureIOS' +require_relative 'ConfigureSwift' require_relative 'ProjectManipulator' module Pod class TemplateConfigurator attr_reader :pod_name, :pods_for_podfile, :prefix,:prefixes, :test_example_file, :username, :email,:temp_path - def initialize(pod_name,framework,prefix,author,temp_path) + def initialize(pod_name,framework,prefix,author,temp_path,is_simple) @temp_path = temp_path @pod_name = pod_name @framework = framework @prefix = prefix @author = author - + @is_simple = is_simple @pods_for_podfile = [] @prefixes = [] @message_bank = MessageBank.new(self) end @@ -86,11 +87,14 @@ end replace_variables_in_files clean_template_files rename_template_files - - add_yk_pods + + if @is_simple != true + add_yk_pods + end + add_pods_to_podfile customise_prefix rename_classes_folder