Sha256: 88eb46bd514181a8b6a97fce7101566da40dbf8f528f10c8c0f33c916d2a542c

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 Bytes

Contents

module Xcake
  # This build phase generator detects
  # files and adds them to the copy resources phase.
  #
  class CopyResourcesFileReferenceInstaller < FileReferenceInstaller

    def self.dependencies
      FileReferenceInstaller.repository.select do |i|
        i != self
      end
    end

    def self.can_install_node(node)
      !File.directory?(node.path)
    end

    def add_file_reference_to_target(file_reference, target)
      target.resources_build_phase.add_file_reference(file_reference)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xcake-0.6.2 lib/xcake/file_reference_installer/copy_resources_file_reference_installer.rb