Module: Conventions

Defined in:
lib/conventions.rb

Class Method Summary collapse

Class Method Details

.client_root_dirObject



20
21
22
# File 'lib/conventions.rb', line 20

def Conventions.client_root_dir
  File.expand_path(File.join(working_dir,'clients'))
end

.init_p4droot_dirObject



24
25
26
27
28
# File 'lib/conventions.rb', line 24

def Conventions.init_p4droot_dir
  if !File.directory?(p4droot_dir)
    FileUtils::makedirs(p4droot_dir)
  end
end

.init_working_dirObject



10
11
12
13
14
# File 'lib/conventions.rb', line 10

def Conventions.init_working_dir
  if !File.directory?(working_dir)
    FileUtils::makedirs(working_dir)
  end
end

.p4d_log_pathObject



30
31
32
# File 'lib/conventions.rb', line 30

def Conventions.p4d_log_path
  File.expand_path(File.join(working_dir, 'server.log'))
end

.p4droot_dirObject



16
17
18
# File 'lib/conventions.rb', line 16

def Conventions.p4droot_dir
  File.expand_path(File.join(working_dir,'p4droot'))
end

.working_dirObject



6
7
8
# File 'lib/conventions.rb', line 6

def Conventions.working_dir
  '/tmp/p4util'
end