lib/poise_boiler/helpers/kitchen.rb
# Generate a Test Kitchen suite configuration hash. This is a single suite
# that runs the fixture cookbook if present otherwise the main cookbook.
#
# @return [Hash]
Generate a Test Kitchen suite configuration hash. This is a single suite
that runs the fixture cookbook if present otherwise the main cookbook.
Generate a Test Kitchen suite configuration hash . This is a single suite that runs the fixture cookbook if present otherwise the main cookbook .
def suite_config
        {
          'name' => 'default',
          'run_list' => (File.exist?(File.join(base, 'test', 'cookbook')) || File.exist?(File.join(base, 'test', 'cookbooks'))) ? ["#{cookbook_name}_test"] : [cookbook_name],
        }
      end
def suite_config { 'name' => 'default' , 'run_list' => ( File . exist? ( File . join ( base , 'test' , 'cookbook' ) ) || File . exist? ( File . join ( base , 'test' , 'cookbooks' ) ) ) ? [ "#{cookbook_name}_test" ] : [ cookbook_name ] , } end
Generate a Test Kitchen suite configuration hash.
Generate a Test Kitchen suite configuration hash .
None
Hash