Sha256: af46de6e4d869c3af6411a29db81ca8c6324bd3d2b7981284e02023bf2b75764

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

require 'pathname'
module Certflare
  class Initialization
    def initialize
      @log_dir = Pathname.new('/var').join('log', 'certflare')
      @tmp_dir = Pathname.new('/tmp').join('certflare')
    end
    def create_tmp_dir
      unless @tmp_dir.exist?
        FileUtils.mkdir_p(Pathname.new('/tmp/').join('certflare'))
      end
    end

    def create_log_dir
      unless @log_dir.exist?
        FileUtils.mkdir_p(Pathname.new('/var').join('log', 'certflare'))
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
certflare-0.1.10 lib/certflare/initialization.rb