Sha256: f9a3de4509ef1f8f74478470ca806c4134619930831cf1e75d195b1ee4472cc3

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

require 'itamae'

module Itamae
  module Resources
    class RemoteFile < File
      define_option :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

1 entries across 1 versions & 1 rubygems

Version Path
itamae-1.0.0.beta1 lib/itamae/resources/remote_file.rb