Sha256: 1fcfd3a364a6395898e7c6c52c3fe7808934546dc339da4365be3f065fb82f8e

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

require 'lightchef'

module Lightchef
  module Resources
    class File < Base
      def create_action
        src = ::File.expand_path(fetch_option(:source), ::File.dirname(@recipe.path))
        dst = fetch_option(:path)
        copy_file(src, dst)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lightchef-0.0.2 lib/lightchef/resources/file.rb
lightchef-0.0.1 lib/lightchef/resources/file.rb