Class: Puppet::ModuleTool::Applications::Generator::DirectoryNode

Inherits:
Node
  • Object
show all
Defined in:
lib/vendor/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::ModuleTool::Applications::Generator::Node

Class Method Details

.matches?(path) ⇒ Boolean

Returns:

  • (Boolean)


106
107
108
# File 'lib/vendor/puppet/module_tool/applications/generator.rb', line 106

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

Instance Method Details

#install!Object



109
110
111
# File 'lib/vendor/puppet/module_tool/applications/generator.rb', line 109

def install!
  target.mkpath
end