module Conventions

Public Class Methods

client_root_dir() click to toggle source
# File lib/conventions.rb, line 20
def Conventions.client_root_dir
  File.expand_path(File.join(working_dir,'clients'))
end
init_p4droot_dir() click to toggle source
# File lib/conventions.rb, line 24
def Conventions.init_p4droot_dir
  if !File.directory?(p4droot_dir)
    FileUtils::makedirs(p4droot_dir)
  end
end
init_working_dir() click to toggle source
# File lib/conventions.rb, line 10
def Conventions.init_working_dir
  if !File.directory?(working_dir)
    FileUtils::makedirs(working_dir)
  end
end
p4d_log_path() click to toggle source
# File lib/conventions.rb, line 30
def Conventions.p4d_log_path
  File.expand_path(File.join(working_dir, 'server.log'))
end
p4droot_dir() click to toggle source
# File lib/conventions.rb, line 16
def Conventions.p4droot_dir
  File.expand_path(File.join(working_dir,'p4droot'))
end
working_dir() click to toggle source
# File lib/conventions.rb, line 6
def Conventions.working_dir
  '/tmp/p4util'
end