def new_core(corename)
      dir = temp_core_dir_setup(corename)

      args = {
        :wt          => 'json',
        :action      => 'CREATE',
        :name        => corename,
        :instanceDir => dir
      }

      get('admin/cores', args)
      core(corename)

    end
def new_core(corename)
      dir = temp_core_dir_setup(corename)

      args = {
        :wt          => 'json',
        :action      => 'CREATE',
        :name        => corename,
        :instanceDir => dir
      }

      get('admin/cores', args)
      core(corename)

    end
Create a new, temporary core
noinspection RubyWrongHash