lib/poise_boiler/helpers/kitchen.rb
# Which Test Kitchen driver are we going to use.
#
# @return [String]
Which Test Kitchen driver are we going to use.
Which Test Kitchen driver are we going to use .
def kitchen_driver
        @kitchen_driver ||= if options[:driver]
          options[:driver]
        elsif File.exist?(File.expand_path('test/docker/docker.key', base))
          'docker'
        elsif ENV['CI']
          'dummy'
        else
          'vagrant'
        end
      end
def kitchen_driver @kitchen_driver ||= if options [ :driver ] options [ :driver ] elsif File . exist? ( File . expand_path ( 'test/docker/docker.key' , base ) ) 'docker' elsif ENV [ 'CI' ] 'dummy' else 'vagrant' end end
Which Test Kitchen driver are we going to use.
Which Test Kitchen driver are we going to use .
# Manual override. # Look for the decrypted private key. In CI this is generated by `rake travis`. # Don't try to use Vagrant on CI ever.
None
String