Sha256: e1c98b3e9ee4ef47f9d04c28498e3cc05d96e08edb15ee3c0ed141efcd7d99ed

Contents?: true

Size: 317 Bytes

Versions: 42

Compression:

Stored size: 317 Bytes

Contents

require 'itamae'

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

      def pre_action
        attributes.content_file =
          ::File.expand_path(attributes.source, ::File.dirname(@recipe.path))

        super
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
itamae-1.1.19 lib/itamae/resource/remote_file.rb
itamae-1.1.18 lib/itamae/resource/remote_file.rb
itamae-1.1.17 lib/itamae/resource/remote_file.rb
itamae-1.1.16 lib/itamae/resource/remote_file.rb
itamae-1.1.15 lib/itamae/resource/remote_file.rb
itamae-1.1.14 lib/itamae/resource/remote_file.rb
itamae-1.1.13 lib/itamae/resource/remote_file.rb
itamae-1.1.12 lib/itamae/resource/remote_file.rb
itamae-1.1.11 lib/itamae/resource/remote_file.rb
itamae-1.1.10 lib/itamae/resource/remote_file.rb
itamae-1.1.9 lib/itamae/resource/remote_file.rb
itamae-1.1.8 lib/itamae/resource/remote_file.rb
itamae-1.1.7 lib/itamae/resource/remote_file.rb
itamae-1.1.5 lib/itamae/resource/remote_file.rb
itamae-1.1.4 lib/itamae/resource/remote_file.rb
itamae-1.1.3 lib/itamae/resource/remote_file.rb
itamae-1.1.2 lib/itamae/resource/remote_file.rb
itamae-1.1.1 lib/itamae/resource/remote_file.rb
itamae-1.1.0 lib/itamae/resource/remote_file.rb
itamae-1.0.13 lib/itamae/resource/remote_file.rb