Sha256: a650f2a5bce0cd05794e9382995d9b2447adfb3661e614091dd29ef0b8600ae8

Contents?: true

Size: 430 Bytes

Versions: 12

Compression:

Stored size: 430 Bytes

Contents

module Xcake
  module Generator
    # This build phase generator detects
    # files and adds them to the copy resources phase.
    #
    class CopyResourcesBuildPhase < BuildPhase

      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
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
xcake-0.5.3 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.5.2 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.5.1 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.5.0 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.4.8 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.4.7 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.4.6 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.4.5 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.4.4 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.4.3 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.4.2 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.4.1 lib/xcake/generator/build_phase/copy_resources_build_phase.rb