lib/pdksync.rb in pdksync-0.6.0 vs lib/pdksync.rb in pdksync-0.8.0

- old
+ new

@@ -7,11 +7,10 @@ require 'pdksync/configuration' require 'pdksync/gitplatformclient' require 'json' require 'yaml' -require 'colorize' require 'bundler' require 'octokit' require 'pdk/util/template_uri' require 'pdksync/logger' require 'pdksync/utils' @@ -160,10 +159,10 @@ Dir.chdir(main_path) unless Dir.pwd == main_path PdkSync::Logger.info "#{module_name}, " repo_name = File.join(Utils.configuration.namespace, module_name) output_path = File.join(Utils.configuration.pdksync_dir, module_name) if steps.include?(:clone) - Utils.validate_modules_exist(client, module_names) + Utils.validate_modules_exist(client, [module_name]) Utils.clean_env(output_path) if Dir.exist?(output_path) PdkSync::Logger.info 'delete module directory' @git_repo = Utils.clone_directory(Utils.configuration.namespace, module_name, output_path) PdkSync::Logger.info 'cloned' PdkSync::Logger.error "Unable to clone repo for #{module_name}" if @git_repo.nil?