bugfix: expose path in file resource

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-10-06 14:11:48 +02:00
parent 17259d9ddc
commit 3439a34d16

View file

@ -6,6 +6,7 @@ module Vulcano::Resources
class File < Vulcano.resource(1)
name 'file'
attr_reader :path
def initialize(path)
@path = path
@file = vulcano.backend.file(@path)