Module: Conventions
- Defined in:
- lib/conventions.rb
Class Method Summary collapse
- .client_root_dir ⇒ Object
- .init_p4droot_dir ⇒ Object
- .init_working_dir ⇒ Object
- .p4d_log_path ⇒ Object
- .p4droot_dir ⇒ Object
- .working_dir ⇒ Object
Class Method Details
.client_root_dir ⇒ Object
20 21 22 |
# File 'lib/conventions.rb', line 20 def Conventions.client_root_dir File.(File.join(working_dir,'clients')) end |
.init_p4droot_dir ⇒ Object
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_dir ⇒ Object
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_path ⇒ Object
30 31 32 |
# File 'lib/conventions.rb', line 30 def Conventions.p4d_log_path File.(File.join(working_dir, 'server.log')) end |
.p4droot_dir ⇒ Object
16 17 18 |
# File 'lib/conventions.rb', line 16 def Conventions.p4droot_dir File.(File.join(working_dir,'p4droot')) end |
.working_dir ⇒ Object
6 7 8 |
# File 'lib/conventions.rb', line 6 def Conventions.working_dir '/tmp/p4util' end |