Sha256: 31539d5c92dae061051fd4f639cbdbd4f244cd6c361bbbbaebe6016aaf15dfb5

Contents?: true

Size: 636 Bytes

Versions: 4

Compression:

Stored size: 636 Bytes

Contents

require 'fileutils'

module Conventions

  def Conventions.working_dir
    '/tmp/p4util'
  end

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

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

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
p4util-0.4.3 ./lib/conventions.rb
p4util-0.4.2 ./lib/conventions.rb
p4util-0.4.1 ./lib/conventions.rb
p4util-0.4 ./lib/conventions.rb