Sha256: 794bfad8a83199a3e07afbc6f24773a283bb8b741ab43fafbe94d35e71b79dd5

Contents?: true

Size: 1.52 KB

Versions: 10

Compression:

Stored size: 1.52 KB

Contents

#
# Author:: Hedgehog (<hedgehogshiatus@gmail.com>)
# Copyright:: Copyright (c) 2011 Hedgehog.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

Before('@fast') do
  @aruba_timeout_seconds.nil? || @aruba_timeout_seconds < 6 ? @aruba_timeout_seconds = 6 : @aruba_timeout_seconds
end
Before('@quick') do
  @aruba_timeout_seconds.nil? || @aruba_timeout_seconds < 20 ? @aruba_timeout_seconds = 20 : @aruba_timeout_seconds
end
Before('@slow') do
  @aruba_timeout_seconds.nil? || @aruba_timeout_seconds < 60 ? @aruba_timeout_seconds = 60 : @aruba_timeout_seconds
end
Before('@glacial') do
  @aruba_timeout_seconds.nil? || @aruba_timeout_seconds < 600 ? @aruba_timeout_seconds = 600 : @aruba_timeout_seconds
end
# Some VM builds can take a while, depending on package repository speeds etc.
# Note:
# In a genuine disaster scenario you are more likely to, eventually, trying throwing this at the top of a feature file :(
Before('@cosmic') do
  @aruba_timeout_seconds.nil? || @aruba_timeout_seconds < 3600 ? @aruba_timeout_seconds = 3600 : @aruba_timeout_seconds
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cuken-0.1.22 lib/cuken/cucumber/vagrant/hooks.rb
cuken-0.1.21 lib/cuken/cucumber/vagrant/hooks.rb
cuken-0.1.20 lib/cuken/cucumber/vagrant/hooks.rb
cuken-0.1.19 lib/cuken/cucumber/vagrant/hooks.rb
cuken-0.1.18 lib/cuken/cucumber/vagrant/hooks.rb
cuken-0.1.17 lib/cuken/cucumber/vagrant/hooks.rb
cuken-0.1.16 lib/cuken/cucumber/vagrant/hooks.rb
cuken-0.1.15 lib/cuken/cucumber/vagrant/hooks.rb
cuken-0.1.13 lib/cuken/cucumber/vagrant/hooks.rb
cuken-0.1.12 lib/cuken/cucumber/vagrant/hooks.rb