lib/poise_boiler/helpers/kitchen.rb
# Generate a Test Kitchen provisioner configuration hash.
#
# @return [Hash]
Generate a Test Kitchen provisioner configuration hash.
Generate a Test Kitchen provisioner configuration hash .
def provisioner_config
        {
          'log_level' => (ENV['DEBUG'] ? 'debug' : (ENV['CHEF_LOG_LEVEL'] || 'auto')),
          'name' => 'poise_solo',
          'attributes' => {
            'CI' => ENV['CI'],
            'POISE_DEBUG' => !!((ENV['POISE_DEBUG'] && ENV['POISE_DEBUG'] != 'false') ||
                                (ENV['poise_debug'] && ENV['poise_debug'] != 'false') ||
                                (ENV['DEBUG'] && ENV['DEBUG'] != 'false')
                               ),
          }
        }
      end
def provisioner_config { 'log_level' => ( ENV [ 'DEBUG' ] ? 'debug' : ( ENV [ 'CHEF_LOG_LEVEL' ] || 'auto' ) ) , 'name' => 'poise_solo' , 'attributes' => { 'CI' => ENV [ 'CI' ] , 'POISE_DEBUG' => ! ! ( ( ENV [ 'POISE_DEBUG' ] && ENV [ 'POISE_DEBUG' ] != 'false' ) || ( ENV [ 'poise_debug' ] && ENV [ 'poise_debug' ] != 'false' ) || ( ENV [ 'DEBUG' ] && ENV [ 'DEBUG' ] != 'false' ) ) , } } end
Generate a Test Kitchen provisioner configuration hash.
Generate a Test Kitchen provisioner configuration hash .
# Use the poise_solo provisioner, also part of kitchen-docker. # Pass through $CI to know if we are on Travis. # Pass through debug/poise_debug settings to the test instance.
None
Hash