class PuppetGenerator::Models::Exporter

model for import filter

Public Class Methods

existing_destination?(destination) click to toggle source
# File lib/puppet_generator/models/exporter.rb, line 26
def existing_destination?(destination)
  return true if File.exists? destination

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

create new instance of filter model

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

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

  false
end

Private Class Methods

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