Sha256: 94f08a6bd87b6c3b0474003ed12daaba1ef6036de5bcb4cfd3f4146de5af0ff5

Contents?: true

Size: 287 Bytes

Versions: 3

Compression:

Stored size: 287 Bytes

Contents

require 'itamae'

module Itamae
  module Resource
    class RemoteFile < File
      define_attribute :source, type: String, required: true

      def create_action
        content_file(::File.expand_path(source, ::File.dirname(@recipe.path)))

        super
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
itamae-1.0.0.beta4 lib/itamae/resource/remote_file.rb
itamae-1.0.0.beta3 lib/itamae/resource/remote_file.rb
itamae-1.0.0.beta2 lib/itamae/resource/remote_file.rb