Sha256: 991fd47546542f1fa2ff2c9f9c057ba315fc0f3fcae204c0065e6c2663ff6e78

Contents?: true

Size: 914 Bytes

Versions: 4

Compression:

Stored size: 914 Bytes

Contents

# frozen_string_literal: true

require "neeto_compliance/github_access"
require "neeto_compliance/sync_neeto_commons"
require "fileutils"

module NeetoCompliance
  class SyncNeetoCommons
    class SyncTestSupport
      SUPPORT_DIR = "test/support"

      def self.SUPPORT_FILES
        [
          "test/support/assertion_support.rb"
        ]
      end

      def self.process
        ensure_test_support_folder_exists
        sync_support_files
      end

      def self.ensure_test_support_folder_exists
        unless File.directory?(SUPPORT_DIR)
          puts "Creating test support directory..."
          FileUtils.mkdir_p SUPPORT_DIR
        end
      end

      def self.sync_support_files
        self.SUPPORT_FILES.each do |file|
          print "Copying #{file}...\n"
          system(`cp #{NeetoCompliance::SyncNeetoCommons.neeto_commons_url}#{file} #{file}`)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
neeto-compliance-1.0.58 lib/neeto_compliance/sync_neeto_commons/sync_test_support.rb
neetob-0.1.2 neeto_compliance/lib/neeto_compliance/sync_neeto_commons/sync_test_support.rb
neetob-0.1.1 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/sync_neeto_commons/sync_test_support.rb
neetob-0.1.0 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/sync_neeto_commons/sync_test_support.rb