File: env.rb

package info (click to toggle)
librarian-puppet 6.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 524 kB
  • sloc: ruby: 1,432; sh: 37; makefile: 9
file content (25 lines) | stat: -rw-r--r-- 471 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

require 'aruba/cucumber'
require 'fileutils'

Before do
  @aruba_timeout_seconds = 120
end

Before('@spaces') do
  @dirs = ['tmp/aruba with spaces']
  @dirs.each { |dir| FileUtils.rm_rf dir }
end

Given(/^PENDING/) do
  pending
end

Given(/^there is no Puppetfile$/) do
  in_current_directory do
    raise "Puppetfile exists at #{File.expand_path('Puppetfile')}" if File.exist?('Puppetfile')
  end
end

ENV['LIBRARIAN_PUPPET_TMP'] = '.tmp'