Class: Puppet::Module::Tool::Applications::Generator::DirectoryNode

Inherits:
Node
  • Object
show all
Defined in:
lib/puppet/module/tool/applications/generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Node

inherited, #initialize, on, #read, #target, types

Constructor Details

This class inherits a constructor from Puppet::Module::Tool::Applications::Generator::Node

Class Method Details

.matches?(path) ⇒ Boolean

Returns:

  • (Boolean)


80
81
82
# File 'lib/puppet/module/tool/applications/generator.rb', line 80

def self.matches?(path)
  path.directory?
end

Instance Method Details

#install!Object



83
84
85
# File 'lib/puppet/module/tool/applications/generator.rb', line 83

def install!
  target.mkpath
end