Welcome to mirror list, hosted at ThFree Co, Russian Federation.

namespace.rb « runtime « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a72c2d21898d8806429f3ed2dd53f85923b44e6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module QA
  module Runtime
    module Namespace
      extend self

      def time
        @time ||= Time.now
      end

      def name
        'qa-test-' + time.strftime('%d-%m-%Y-%H-%M-%S')
      end

      def path
        "#{sandbox_name}/#{name}"
      end

      def sandbox_name
        'gitlab-qa-sandbox'
      end
    end
  end
end