Sha256: 9f930b68ee46b7a03372c22f43d8ef490513f0a39238627362d8262d31ea84ed

Contents?: true

Size: 438 Bytes

Versions: 7

Compression:

Stored size: 438 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) == false
      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

7 entries across 7 versions & 1 rubygems

Version Path
xcake-0.3.1 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.3.0 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.1.9 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.1.8 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.1.7 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.1.6 lib/xcake/generator/build_phase/copy_resources_build_phase.rb
xcake-0.1.5 lib/xcake/generator/build_phase/copy_resources_build_phase.rb