Class: Puppet::ModuleTool::Applications::Generator::FileNode

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)


132
133
134
# File 'lib/vendor/puppet/module_tool/applications/generator.rb', line 132

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

Instance Method Details

#install!Object



135
136
137
# File 'lib/vendor/puppet/module_tool/applications/generator.rb', line 135

def install!
  FileUtils.cp(@source, target)
end