lib/poise_boiler/helpers/kitchen.rb
# Generate a Test Kitchen driver configuration hash.
#
# @return [Hash]
Generate a Test Kitchen driver configuration hash.
Generate a Test Kitchen driver configuration hash .
def driver_config
        config = {'name' => kitchen_driver, 'require_chef_omnibus' => chef_version || true}
        case kitchen_driver
        when 'docker'
          config.update(
            'dockerfile' => File.expand_path('../kitchen/Dockerfile.erb', __FILE__),
            'password' => nil,
            'binary' => (ENV['TRAVIS'] == 'true' ? './' : '') + 'docker',
            'socket' => 'tcp://docker.poise.io:443',
            'tls_verify' => 'true',
            'tls_cacert' => 'test/docker/docker.ca',
            'tls_cert' => 'test/docker/docker.pem',
            'tls_key' => 'test/docker/docker.key',
          )
        when 'rackspace'
          config['flavor_id'] = options[:rackspace_flavor] || 'general1-1'
        when 'ec2'
          config.update(ec2_driver_config)
        end
        config
      end
def driver_config config = { 'name' => kitchen_driver , 'require_chef_omnibus' => chef_version || true } case kitchen_driver when 'docker' config . update ( 'dockerfile' => File . expand_path ( '../kitchen/Dockerfile.erb' , __FILE__ ) , 'password' => nil , 'binary' => ( ENV [ 'TRAVIS' ] == 'true' ? './' : '' ) + 'docker' , 'socket' => 'tcp://docker.poise.io:443' , 'tls_verify' => 'true' , 'tls_cacert' => 'test/docker/docker.ca' , 'tls_cert' => 'test/docker/docker.pem' , 'tls_key' => 'test/docker/docker.key' , ) when 'rackspace' config [ 'flavor_id' ] = options [ :rackspace_flavor ] || 'general1-1' when 'ec2' config . update ( ec2_driver_config ) end config end
Generate a Test Kitchen driver configuration hash.
Generate a Test Kitchen driver configuration hash .
# Default config for all drivers. {#chef_version} returns nil for "any # version" so use true to prevent reinstall attempts. # Docker-specific configuration. # Custom Dockerfile. # No password for securiteeeee. # Our docker settings. # Set a default instance size.
None
Hash