Class: Txgh::Config::Providers::FileProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/txgh/config/providers/file_provider.rb

Constant Summary collapse

SCHEME =
'file'

Class Method Summary collapse

Class Method Details

.load(payload, parser, options = {}) ⇒ Object



14
15
16
# File 'lib/txgh/config/providers/file_provider.rb', line 14

def load(payload, parser, options = {})
  parser.load(ERB.new(File.read(payload)).result(binding))
end

.schemeObject



18
19
20
# File 'lib/txgh/config/providers/file_provider.rb', line 18

def scheme
  SCHEME
end

.supports?(scheme) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/txgh/config/providers/file_provider.rb', line 10

def supports?(scheme)
  scheme == SCHEME
end