30 lines
663 B
Ruby
30 lines
663 B
Ruby
|
module Puppet
|
||
|
module Modules
|
||
|
module CommonDirectories
|
||
|
def build_path(src_path, name, version)
|
||
|
File.join(src_path, "#{name}-#{version}")
|
||
|
end
|
||
|
|
||
|
def install_path(install_path, name, version)
|
||
|
File.join(install_path, "#{name}-#{version}")
|
||
|
end
|
||
|
|
||
|
def symlink_path(install_path, name)
|
||
|
File.join(install_path, name)
|
||
|
end
|
||
|
|
||
|
def bin_path(install_path, name)
|
||
|
File.join(install_path, name, 'bin')
|
||
|
end
|
||
|
|
||
|
def sbin_path(install_path, name)
|
||
|
File.join(install_path, name, 'sbin')
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class Puppet::Parser::Scope
|
||
|
include Puppet::Modules::CommonDirectories
|
||
|
end
|