class PuppetGenerator::Models::Importer

model for import filter

Public Class Methods

existing_source?(source) click to toggle source
# File lib/puppet_generator/models/importer.rb, line 26
def existing_source?(source)
  return true if find( reads_from: source )

  false
end
new( name , importer ) click to toggle source

create new instance of filter model

Calls superclass method
# File lib/puppet_generator/models/importer.rb, line 18
def initialize( name , importer )
  super(name)

  @importer = importer
end
valid_source?(source) click to toggle source
# File lib/puppet_generator/models/importer.rb, line 32
def valid_source?(source)
  return true if find( reads_from: source, enabled: true )

  false
end

Private Class Methods

check_method() click to toggle source
# File lib/puppet_generator/models/importer.rb, line 40
def check_method
  :read
end
path() click to toggle source
# File lib/puppet_generator/models/importer.rb, line 44
def path
  __FILE__
end