Class: Configspec::Type::File

Inherits:
Base
  • Object
show all
Defined in:
lib/configspec/type/file.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_s

Constructor Details

This class inherits a constructor from Configspec::Type::Base

Instance Method Details

#sourced_from?(from) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/configspec/type/file.rb', line 4

def sourced_from?(from)
  backend.copy_file(from, @name)
end